Author Topic: Open file from command line in read-only mode  (Read 4954 times)

skaester

  • Community Member
  • Posts: 5
  • Hero Points: 0
Open file from command line in read-only mode
« on: August 15, 2006, 01:45:31 pm »
Hello,

I want to start SlickEdit from the MSDOS command-line to open a file in read-only mode. I tried to start like this:

> vs myTest.txt -#read-only-mode

But this doesn't work. It's important for me, because I use a tool, that starts SlickEdit over the MSDOS-Command Line. Have sombody a idea?

Hopefully,

Steven

Graeme

  • Senior Community Member
  • Posts: 2279
  • Hero Points: 296
Re: Open file from command line in read-only mode
« Reply #1 on: August 16, 2006, 04:49:15 am »

What do you mean "doesn't work" - what actually happens?

I'm sure you can get this to work one way or another.

Have a read of this thread (insert hylerlink isn't working for me on this machine)
http://community.slickedit.com/index.php?topic=128.msg725#msg725

or search for the thread about auto restore of files - it started on July 14 but see the post I made on July 30.

Try using underscores instead of hyphens and putting quotes around the name
i.e.  -#"read_only_mode"

Graeme