UNC Paths not supported in Batch Script
Closed
Riya
-
May 18, 2015 at 08:09 AM
BrianGreen Posts 1005 Registration date Saturday January 17, 2015 Status Moderator Last seen September 30, 2021 - May 19, 2015 at 07:47 AM
BrianGreen Posts 1005 Registration date Saturday January 17, 2015 Status Moderator Last seen September 30, 2021 - May 19, 2015 at 07:47 AM
Related:
- Forfiles unc path
- Forfiles move files older than - Guide
- Unc apk - Download - Horror
- Fstab space in path - Guide
- Insert file path in excel - Guide
- How to change download path in opera gx - Guide
1 response
BrianGreen
Posts
1005
Registration date
Saturday January 17, 2015
Status
Moderator
Last seen
September 30, 2021
149
May 19, 2015 at 07:47 AM
May 19, 2015 at 07:47 AM
Hi Riya,
This is taken from https://support.microsoft.com/en-us/help/156276
I hope it helps.
This is taken from https://support.microsoft.com/en-us/help/156276
Obtain the updated Cmd.exe. You must also make a registry entry to be able to use a UNC path as the current directory.
WARNING: Using Registry Editor incorrectly can cause serious, system-wide problems that may require you to reinstall Windows NT to correct them. Microsoft cannot guarantee that any problems resulting from the use of Registry Editor can be solved. Use this tool at your own risk.
Under the registry path:
HKEY_CURRENT_USER
\Software
\Microsoft
\Command Processor
add the value DisableUNCCheck REG_DWORD and set the value to 0 x 1 (Hex).
WARNING: If you enable this feature and start a Console that has a current directory of an UNC name, start applications from that Console, and then close the Console, it could cause problems in the applications started from that Console.
I hope it helps.