S
Steven Adams
We have a logon script which calls another script which in turn calls a
third script.
A bit messy but that's just the way it is.
Under WIN2K there are no issues and all runs fine but from XP when %0 is
used to reference the source location the initial calling script is
surrounded with quotes but the rest of the path is left as normal.
This causes the path to be invalid ?
Maybe an example would help to explain:
the line in the script is:
If "%instsms%"=="YES" CALL %0\..\SMSINSTA_test.BAT
on WIN2K the command resolves to:
\\SERVER1\NETLOGON\mis_test.bat\..\CommonCCC_test.Bat\..\SMSINSTA_test.BAT\.
..\SMSBOOT1.EXE -S
\\SERVER1\NETLOGON\mis_test.bat\..\CommonCCC_test.Bat\..\SMSINSTA_test.BAT -
N -WINDIR=C:\WINNT
on XP the command resolves to:
M:\>"\\SERVER1\NETLOGON\mis_test.bat"\..\CommonCCC_test.Bat\..\SMSINSTA_test
..BAT\..\SMSBOOT1.EXE -S
"\\SERVER1\NETLOGON\mis_test.bat"\..\CommonCCC_test.Bat\..\SMSINSTA_test.BAT
-N -WINDIR=C:\WINDOWS
as you can see the XP version has extra quotes.
Any ideas ?
third script.
A bit messy but that's just the way it is.
Under WIN2K there are no issues and all runs fine but from XP when %0 is
used to reference the source location the initial calling script is
surrounded with quotes but the rest of the path is left as normal.
This causes the path to be invalid ?
Maybe an example would help to explain:
the line in the script is:
If "%instsms%"=="YES" CALL %0\..\SMSINSTA_test.BAT
on WIN2K the command resolves to:
\\SERVER1\NETLOGON\mis_test.bat\..\CommonCCC_test.Bat\..\SMSINSTA_test.BAT\.
..\SMSBOOT1.EXE -S
\\SERVER1\NETLOGON\mis_test.bat\..\CommonCCC_test.Bat\..\SMSINSTA_test.BAT -
N -WINDIR=C:\WINNT
on XP the command resolves to:
M:\>"\\SERVER1\NETLOGON\mis_test.bat"\..\CommonCCC_test.Bat\..\SMSINSTA_test
..BAT\..\SMSBOOT1.EXE -S
"\\SERVER1\NETLOGON\mis_test.bat"\..\CommonCCC_test.Bat\..\SMSINSTA_test.BAT
-N -WINDIR=C:\WINDOWS
as you can see the XP version has extra quotes.
Any ideas ?