Re: Quotes and spaces within the AT command



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"
.



Relevant Pages

  • Re: spaces in filesnames & batch files - using variables
    ... This works fine typed at the command line, but in a batch file, the ... Each pair of quotes should contain a single path. ... So the issue is really one of assigning a pathname to a variable such that the spaces in the pathname are preserved, but the quote marks are dropped. ...
    (microsoft.public.windows.server.general)
  • Re: using VBS to run programs silently, PITA
    ... > from a batch file. ... Including quotes. ... WScript.Echo strWIMP ... -- torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway Administration scripting examples and an ONLINE version of the 1328 page Scripting Guide: ...
    (microsoft.public.scripting.vbscript)
  • Re: Another dumb user question - Nem?
    ... With out quotes, I take it, "start Jarte.exe %s" ... No. using the prefix "start" in the command does kill the CMD.EXE ... window but the file "temp_article.txt" ... The other thing is try creating a batch file with "start jarte.exe %1" as ...
    (news.software.readers)
  • Re: spaces in filesnames & batch files - using variables
    ... This works fine typed at the command line, but in a batch file, the ... Each pair of quotes should contain a single path. ... trying to do is have a variable at the top of the script used to specify ...
    (microsoft.public.windows.server.general)
  • Re: New York mag article
    ... I can’t work out if the quotes from the “source” in this piece were ... Dave) was taped later that same Thursday evening, ... old schedule. ... They are taping the Friday show on Monday still, ...
    (alt.fan.letterman)

Loading