R
Ray at
Hi group,
I'm trying to use soon.exe from the reskit to schedule a job on a remote
machine, and I want to specify the path to the executable to be in
%systemroot%. When I execute my command, my %systemroot% variable is
expanded, as I expected, but I have not been able to get around it.
(My %systemroot% is D:\Windows)
This command:
SOON %compName% %%systemroot%%\system32\rayrcmd.bat
Generates on remote machine:
D:\Windows\system32\rayrcmd.bat
------
This command:
SOON %compName% ^%systemroot^%\system32\rayrcmd.bat
Generates on remote machine:
\system32\rayrcmd.bat
------
Enclosing the command in " yields the same results. I thought that I could
escape % with a ^, but it doesn't seem to be working for me. Can anyone
tell me how I can pass the literal %systemroot% string and have my remote
task have %systemroot% instead of my interpreted systemroot?
Thank you,
Ray at work
I'm trying to use soon.exe from the reskit to schedule a job on a remote
machine, and I want to specify the path to the executable to be in
%systemroot%. When I execute my command, my %systemroot% variable is
expanded, as I expected, but I have not been able to get around it.
(My %systemroot% is D:\Windows)
This command:
SOON %compName% %%systemroot%%\system32\rayrcmd.bat
Generates on remote machine:
D:\Windows\system32\rayrcmd.bat
------
This command:
SOON %compName% ^%systemroot^%\system32\rayrcmd.bat
Generates on remote machine:
\system32\rayrcmd.bat
------
Enclosing the command in " yields the same results. I thought that I could
escape % with a ^, but it doesn't seem to be working for me. Can anyone
tell me how I can pass the literal %systemroot% string and have my remote
task have %systemroot% instead of my interpreted systemroot?
Thank you,
Ray at work