Re: Program that requires drive letter fails
- From: William Fourqurean <wfour@xxxxxxxxxxxxxxxx>
- Date: Thu, 10 May 2007 07:23:01 -0700
Sean,
Thanks for looking at the logs. I saw that first error you referred to in
the execmgr.log. Where is the second error located? I took the * character
to be a susstitute for something like "any available drive letter". The
option that I chose was "Requires drive letter" under the "Drive mode"
section of the Environment tab on the program properties ***. I had
previously also tried the "Requires specific driver letter" option and it
failed also. The error message may have been slightly different, but similar.
The content of the SMS.Test1.cmd file was just some test code to try to get
anything to run and to log what is going on. I am running some "CD" commands
and redirecting the output to a file in order to test what the current
working directory is. Then, I do some tests for the existence of some files
that I expect to be located in the same directory as the script, or in a
subdirectory, and then I try to copy some of the files to the C:\Temp
directory. I will paste the code below:
SETLOCAL
rem Set variables used by this script
rem The variable below includes a trailing backslash
set sourcepath=%~dp0
set logdir=C:\Temp
set logfile=%logdir%\SMS-Test1.log
now Launched %0 >> %logfile%
now Executing command: if "%IMAGE_VER%"=="11" goto Ready >> %logfile%
if "%IMAGE_VER%"=="11" goto Ready
now Error: Image 11 environment variable match not detected. Going to end.
%logfile%
now Executing command: goto end >> %logfile%
goto end
:Ready
now Verified Image 11 system >> %logfile%
:TEST1
now At section TEST1 >> %logfile%
now Executing CD command with redirect to CD-out.txt. >> %logfile%
CD > CD-out.txt
now ERRORLEVEL returned is: %ERRORLEVEL% >> %logfile%
now Executing command: if exist CD-out.txt goto TEST1A >> %logfile%
if exist CD-out.txt goto TEST1A
now CD-out.txt was not found. Skipping to TEST2 >> %logfile%
goto TEST2
:TEST1A
now At section TEST1A >> %logfile%
now Printing contents of CD-out.txt below: >> %logfile%
type CD-out.txt >> %logfile%
:TEST2
now At section TEST2 >> %logfile%
now Executing DIR command of Samples folder with redirect to Dir-out.txt. >>
%logfile%
dir Samples > Dir-out.txt
now ERRORLEVEL returned is: %ERRORLEVEL% >> %logfile%
now Executing command: if exist Dir-out.txt goto TEST2A >> %logfile%
if exist Dir-out.txt goto TEST2A
now Dir-out.txt was not found. Skipping to TEST3 >> %logfile%
goto TEST3
:TEST2A
now At section TEST2A >> %logfile%
now Printing contents of Dir-out.txt below: >> %logfile%
type Dir-out.txt >> %logfile%
:TEST3
now At section TEST3 >> %logfile%
now Executing command: xcopy Samples C:\Temp\Samples /i /s /e /y >> %logfile%
xcopy Samples C:\Temp\Samples /i /s /e /y
now ERRORLEVEL returned is: %ERRORLEVEL% >> %logfile%
:end
now Closing %0 >> %logfile%
ENDLOCAL
"Sean Cai [MSFT]" wrote:
Hello,.
The log isn't long, here's the problematic record:
Failed to map drive * with share \\LABWVSSFP01\APPS execmgr 5/9/2007
11:35:53 AM 2164 (0x0874)
Which option did you use at that time? Here's another example which has a
NTFS permission issue:
Failed to map drive P: with share \\server01\SMSPACKAGE$
Also, can you tell me the content of SMS-Test1.cmd? I want to test your
problem in my environment.
Best Regards,
Sean Cai, MCSE2000
Microsoft Online Support
Get Secure! - www.microsoft.com/security
=====================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
=====================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
- Follow-Ups:
- Re: Program that requires drive letter fails
- From: Sean Cai [MSFT]
- Re: Program that requires drive letter fails
- References:
- Re: Program that requires drive letter fails
- From: Steve Thompson
- Re: Program that requires drive letter fails
- From: Steve Thompson
- Re: Program that requires drive letter fails
- From: Sean Cai [MSFT]
- Re: Program that requires drive letter fails
- From: Sean Cai [MSFT]
- Re: Program that requires drive letter fails
- Prev by Date: BDD 2007 Training class now forming
- Next by Date: Coming: a Webcast on SMS 2003 SP3
- Previous by thread: Re: Program that requires drive letter fails
- Next by thread: Re: Program that requires drive letter fails
- Index(es):