• Home
  • About 404TS
  • Contact

404 Tech Support

Where IT Help is Found

  • Articles
    • Code
    • Entertainment
    • Going Green
    • Hardware, Gadgets, and Products
    • Management
    • Network
    • News
    • Operating Systems
    • Security and Privacy
    • Software
    • System Administration
    • Talking Points
    • Tech Solutions
    • Web
    • Webmaster
  • Reviews
  • Media
    • Infographics
    • Videos
  • Tech Events
  • Tools
    • How do I find my IP address?
    • Browser and plugin tests
  • Get a Technical Consultation
You are here: Home / Articles / System Administration / Use the Command Prompt with UNC Paths

Use the Command Prompt with UNC Paths

2009-04-14 by Jason

If you’re running a batch script from a network share, you might see a message like this:

CMD.EXE was started with the above path as the current directory. UNC paths are not supported. Defaulting to Windows directory.

unc1

This is just a warning message and not an error but it can still cause confusion among users even if the script works perfectly. You can allow the Command Prompt to use UNC paths as the current directory by adding a value to the registry.

Under the HKey Current User, drill down to Software\Microsoft\Command Processor. Add a value if it doesn’t already exist, called DisableUNCCheck. It should be a DWORD value. Make the data a 1 (in hexadecimal) to allow UNC paths.

unc4

Of course, you can script adding this registry value by running something like this:

reg add “HKCU\Software\Microsoft\Command Processor” /v DisableUNCCheck /t REG_DWORD /d 0x1 /f

unc3

After making this registry change, you will be able to make UNC paths as the current directory.

unc2

The only reason this is not set by default is that it may cause problems with certain applications if the console used to launch them is closed. I have yet to see any of these problems. If needed, you can set this registry value to 0x0 (Hex) to re-enable the check.

You can read more about it in the Microsoft Knowledge Base: http://support.microsoft.com/kb/156276

Filed Under: System Administration

Trending

  • Version Tests for Common Browser Plug-Ins
    In Software, System Administration, Tech Solutions
  • OS X El Capitan security update blocks Apple Ethernet drivers
    In News, Operating Systems, Tech Solutions
  • [Updated] Buy Photoshop CS6, Illustrator, and Flash to patch critical vulnerabilities in CS5.5 versions
    In Security and Privacy, Software

Latest Media Posts

Find Out Where To Download SNES ROMs

Find Out Where To Download SNES ROMs

Multifunctional Video Conversion Tools – Wondershare Video Converter

Multifunctional Video Conversion Tools – Wondershare Video Converter

  • Popular
  • Latest
  • Today Week Month All
  • How to ‘Unblock’ multiple files at a time with PowerShell How to 'Unblock' multiple files at a time with PowerShell
  • Increase IIS Private Memory Limit to improve WSUS availability Increase IIS Private Memory Limit to improve WSUS availability
  • Read the Event Logs on Windows Server Core Read the Event Logs on Windows Server Core
  • SOLVED: “This modification is not allowed because the selection is locked.” SOLVED: "This modification is not allowed because the selection is locked."
  • Command line to take ownership and change permissions Command line to take ownership and change permissions
  • Making Distributed Software Development Work: Strategies and Best Practices for Managing Remote Teams Making Distributed Software Development Work: Strategies and Best Practices for Managing Remote Teams
  • customer contactless payment for drink with mobile phon at cafe counter bar,seller coffee shop accept payment by mobile.new normal lifestyle concept The Latest Innovations In Payment Technology
  • How Digital Technology Brought the Rise of the CMO   How Digital Technology Brought the Rise of the CMO  
  • How to Purchase Cryptocurrencies? How to Purchase Cryptocurrencies?
  • Top 6 necessary aspects to consider when hiring Angular developers Top 6 necessary aspects to consider when hiring Angular developers
Ajax spinner

Elevator Pitch

404 Tech Support documents solutions to IT problems, shares worthwhile software and websites, and reviews hardware, consumer electronics, and technology-related books.

Subscribe to 404TS articles by email.

Recent Posts

  • Making Distributed Software Development Work: Strategies and Best Practices for Managing Remote Teams
  • The Latest Innovations In Payment Technology
  • How Digital Technology Brought the Rise of the CMO  

Search

FTC Disclaimer

404TechSupport is an Amazon.com affiliate; when you click on an Amazon link from 404TS, the site gets a cut of the proceeds from whatever you buy. This site also uses Skimlinks for smart monetization of other affiliate links.
Use of this site requires displaying and viewing ads as they are presented.

Copyright © 2023 · Magazine Pro Theme on Genesis Framework · WordPress · Log in