Page 1 of 1

Help please - Invalid cmd line option with windows shortcut

Posted: 04.01.2009, 14:11
by Chuft-Captain
Hi,

I can execute the following from a CMD line window perfectly...

Code: Select all

celestia.exe --verbose > align.log


...however, if I try to set up a windows shortcut to do the same...
celestiaCMD.jpg


...I get the following error:
invalid.jpg


The problem is actually with the redirection symbol ">". Windows does not like it.
Can anyone help with the correct syntax?

Thanks in advance..

CC

Re: Help please - Invalid cmd line option with windows shortcut

Posted: 04.01.2009, 17:31
by jogad
Hi

just create a .bat file like runcelestia.bat with your command line.
Then create a shortcut to your .bat file.

Regards

Re: Help please - Invalid cmd line option with windows shortcut

Posted: 05.01.2009, 02:17
by Chuft-Captain
Cheers Jogad,

I should have thought of that! :oops:

It's annoying however that it has to be done this way. It would be preferable IMO to kick it off directly from a WIN shortcut.

Re: Help please - Invalid cmd line option with windows shortcut

Posted: 05.01.2009, 17:03
by jogad
Hello

Just to say that it is possible.
Type this command for the shortcut:

Code: Select all

cmd.exe /c ""C:\Program Files\Celestia\celestia.exe" --verbose > align.log"

Attention: 4 double quotes.
In this case you have to change yourself the icon of the program.

Cheers