Re: Quotes and spaces within the AT command
- From: Clay Calvert <ccalvert@xxxxxxxxxxx>
- Date: Mon, 20 Feb 2006 21:46:21 -0500
On 20 Feb 2006 16:26:19 -0800, "Csaba Gabor" <danswer@xxxxxxxxx>
wrote:
Unfortunately, when I type AT to see what I got, it is something like:
1 Today 12:58 AM
C:\WINDOWS\system32\cmd.exe "/K SET MOZ_NO_REMOTE=1 && "c:\Program"
Files\Mozilla Firefox\Firefox.exe -p system
http://bugzilla.mozilla.org/attachment.cgi?id=212413
So the whole process falls over because of that space in Program Files.
I've tried varying the number of quotes and using ^ but I just haven't
figured out the AT quoting mechanism. It would be great if someone
could shore up my approach.
There are some other approaches, without having to worry about quoting
with the AT command.
The first option is to create a batch file to run the commands and
then schedule the batch file.
Another option is to find out the "short path" to Firefox.exe and use
that as quotes aren't needed.
for /f %%a in ("c:\Program Files\Mozilla Firefox\Firefox.exe") do (
set FFsPath=%%~sa)
Then call AT with %FFsPath% instead of the full path to FireFox.
A third option is to add the FireFox directory to your %path%, which
can be done in System Properties, Advanced then Environment variables.
Then you should only need to call Firefox.exe instead of the full
path.
Fourth, if this is for XP or 2003, try Schtasks. Since you don't want
an interactive task then this utility is more powerful than AT.
A couple of other options come to mind, but scheduling a batch file is
probably the simplest way to go.
Cheers,
Clay Calvert
CCalvert@xxxxxxxxxxx
Replace "Z" with "L"
.
- Follow-Ups:
- Re: Quotes and spaces within the AT command
- From: Csaba Gabor
- Re: Quotes and spaces within the AT command
- From: Csaba Gabor
- Re: Quotes and spaces within the AT command
- References:
- Quotes and spaces within the AT command
- From: Csaba Gabor
- Quotes and spaces within the AT command
- Prev by Date: Quotes and spaces within the AT command
- Next by Date: Problem With Runas.exe
- Previous by thread: Quotes and spaces within the AT command
- Next by thread: Re: Quotes and spaces within the AT command
- Index(es):
Relevant Pages
|
Loading