Help please - Invalid cmd line option with windows shortcut

General discussion about Celestia that doesn't fit into other forums.
Avatar
Topic author
Chuft-Captain
Posts: 1779
Joined: 18.12.2005
With us: 18 years 11 months

Help please - Invalid cmd line option with windows shortcut

Post #1by Chuft-Captain » 04.01.2009, 14:11

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
"Is a planetary surface the right place for an expanding technological civilization?"
-- Gerard K. O'Neill (1969)

CATALOG SYNTAX HIGHLIGHTING TOOLS LAGRANGE POINTS

Avatar
jogad
Posts: 458
Joined: 17.09.2008
With us: 16 years 2 months
Location: Paris France

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

Post #2by jogad » 04.01.2009, 17:31

Hi

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

Regards

Avatar
Topic author
Chuft-Captain
Posts: 1779
Joined: 18.12.2005
With us: 18 years 11 months

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

Post #3by Chuft-Captain » 05.01.2009, 02:17

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.
"Is a planetary surface the right place for an expanding technological civilization?"
-- Gerard K. O'Neill (1969)

CATALOG SYNTAX HIGHLIGHTING TOOLS LAGRANGE POINTS

Avatar
jogad
Posts: 458
Joined: 17.09.2008
With us: 16 years 2 months
Location: Paris France

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

Post #4by jogad » 05.01.2009, 17:03

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


Return to “Celestia Users”