GUIRunOnce Command Syntax...

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a line in my [GUIRunOnce] section that doesn't work and it looks like
this:

Command0="cmd /c del "C:\Documents and Settings\All Users\Desktop\MSN
Explorer.lnk""

I know I need quotes around the whole command, but I also need quotes around
the path since it has spaces in it. How do I get this to work with a
directory path that has spaces in it?

If I carry out the command as follows, it works perfectly:

Command1="cmd /c del C:\Docume~1\AllUse~1\Desktop\MSNExp~1.lnk"

Thanks, Rick Blake
 
I have a line in my [GUIRunOnce] section that doesn't work and it
looks like this:

Command0="cmd /c del "C:\Documents and Settings\All
Users\Desktop\MSN Explorer.lnk""

I know I need quotes around the whole command, but I also need
quotes around the path since it has spaces in it. How do I get
this to work with a directory path that has spaces in it?

If I carry out the command as follows, it works perfectly:

Command1="cmd /c del C:\Docume~1\AllUse~1\Desktop\MSNExp~1.lnk"

Try placing the command in a batch file and then set Command0
=name_of_batch.cmd.

BTW, why are you invoking CMD to delete a file? "del somefile" should
work equally as well.

Adam
 
Back
Top