net use command - WinXP Embedded [modified]
-
I'm trying to use the 'net use' command to map a drive from a Windows XP Embedded system(built using Target Designer), but when I try to execute the 'net use' command, it is un-recognized. The command works great on my desktop WinXP machine, just not on the embedded system. I'm not sure if we are missing a package that needs to be on the XP Embedded system? Any help is greatly appreciated! Thanks! Here is how i'm using the net use command:
net use X: \\150.168.80.4\Shared_Test
Here is what I'm trying to accomplish: Map to a drive from a WinXP Embedded machine only if the file server (Windows XP) is available. The batch file listed below is the one being run on the WinXP Embedded system.
:VERIFY
echo.
echo ----------VERIFYING FILESERVER AVAILABILITY----------
ping 150.168.80.4 -n 2
if errorlevel 1 goto RETRY
if errorlevel 0 goto MAPDRIVE
goto END:RETRY
echo.
echo ----------FILESERVER UNAVAILABLE.......RETRYING!----------
goto VERIFY:MAPDRIVE
echo.
echo ----------FILESERVER AVAILABLE.....TRYING TO MAP TO FILESERVER----------
net use X: \\150.168.80.4\Shared_Test
ping 127.0.0.1 -n 5 >NUL
IF NOT EXIST X:\ goto MAPDRIVE
IF EXIST X:\ goto END:END
echo.
echo ----------FILESERVER MAPPING SUCCESSFUL....GOODBYE!----------
echo.modified on Wednesday, January 20, 2010 11:09 AM
-
I'm trying to use the 'net use' command to map a drive from a Windows XP Embedded system(built using Target Designer), but when I try to execute the 'net use' command, it is un-recognized. The command works great on my desktop WinXP machine, just not on the embedded system. I'm not sure if we are missing a package that needs to be on the XP Embedded system? Any help is greatly appreciated! Thanks! Here is how i'm using the net use command:
net use X: \\150.168.80.4\Shared_Test
Here is what I'm trying to accomplish: Map to a drive from a WinXP Embedded machine only if the file server (Windows XP) is available. The batch file listed below is the one being run on the WinXP Embedded system.
:VERIFY
echo.
echo ----------VERIFYING FILESERVER AVAILABILITY----------
ping 150.168.80.4 -n 2
if errorlevel 1 goto RETRY
if errorlevel 0 goto MAPDRIVE
goto END:RETRY
echo.
echo ----------FILESERVER UNAVAILABLE.......RETRYING!----------
goto VERIFY:MAPDRIVE
echo.
echo ----------FILESERVER AVAILABLE.....TRYING TO MAP TO FILESERVER----------
net use X: \\150.168.80.4\Shared_Test
ping 127.0.0.1 -n 5 >NUL
IF NOT EXIST X:\ goto MAPDRIVE
IF EXIST X:\ goto END:END
echo.
echo ----------FILESERVER MAPPING SUCCESSFUL....GOODBYE!----------
echo.modified on Wednesday, January 20, 2010 11:09 AM
Hi, I checked the Microsoft Xpe Target Designer and I believe you need to include the "Net.exe Utility" package and rebuild your image. You should also make sure its dependencies such as "CMD – Windows Command Processor" are also present. Also... the batch file your using is calling ping.exe so this means you will also need to include the "TCP/IP Utilities components". By the way... it probably would have been better to ask this question in the Mobile Development[^] forum. Best Wishes, -David Delaune
-
Hi, I checked the Microsoft Xpe Target Designer and I believe you need to include the "Net.exe Utility" package and rebuild your image. You should also make sure its dependencies such as "CMD – Windows Command Processor" are also present. Also... the batch file your using is calling ping.exe so this means you will also need to include the "TCP/IP Utilities components". By the way... it probably would have been better to ask this question in the Mobile Development[^] forum. Best Wishes, -David Delaune