Stan Brown to Anton Shepelev:
I have simple test batch file names test.bat and located
under C:\TEMP\
@ECHO OFF
ECHO 1: %1
ECHO 2: %2
ECHO 3: %3
PAUSE
I created a label on my desktop with the following text
in the target field:
C:\Temp\test.bat one two
Now when I click on the label, it shows a cmd window
with:
1: one
2: two
Really? No third line with "3:"? That's what I get.
I beg pardon, it is an editing mistake: I started testing
with test.bat printing the first three parameters, but
finding that two were enough I removed the third ECHO call
yet forgot to do the same in the message draft. Now I see
that the culprit is not a space in an argument, but the use
of double quotes to escape it, for the error remains with:
C:\Temp\test.bat "one"
I still do not understand why a lablel with this target
won't start the bat file when invoked via
/Run as Administrator/.
--
() ascii ribbon campaign -- against html e-mail
/\ www.asciiribbon.org -- against proprietary attachments
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)