Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. System Admin
  4. net use command - WinXP Embedded [modified]

net use command - WinXP Embedded [modified]

Scheduled Pinned Locked Moved System Admin
sysadminhardwarehelpquestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    JBAK_CP
    wrote on last edited by
    #1

    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

    L 1 Reply Last reply
    0
    • J JBAK_CP

      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

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      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

      J 1 Reply Last reply
      0
      • L Lost User

        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

        J Offline
        J Offline
        JBAK_CP
        wrote on last edited by
        #3

        :thumbsup:

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups