Issues with processing .bat files in Windows 11


Computamedic

New member
Local time
11:41 AM
Posts
2
OS
Windows 11
I have experienced an issue which, on the face of it, appears to be a bug in Windows 11. The issue relates to the processing of a simple .bat file. A simple example is as follows:

D:

MD COPYTEST

CD COPYTEST

COPY S:\COOKIES\*.*

Running this .bat file from a CMD prompt works exactly as expected, but running it directly from "Run as Administrator" fails to copy the files although the folder IS created. Runnnng the same file in Windows 10 works perfectly. Is this a known bug in Windows 11?

I should point out that in this example the S drive is a pre-assigned mapped drive.
 

My Computer

System One

  • OS
    Windows 11

Try3

Well-known member
Power User
VIP
Local time
11:41 AM
Posts
521
Location
The proper part of London
OS
Windows 11 Home x64 Version 21H2 Build 22000.675
1 Does the Admin account have read access to S:\Cookies?
2 Add a Pause line afterwards so you can have a look for any error response.

All the best,
Denis
 

My Computer

System One

  • OS
    Windows 11 Home x64 Version 21H2 Build 22000.675

Computamedic

New member
Thread Starter
Local time
11:41 AM
Posts
2
OS
Windows 11
1 Does the Admin account have read access to S:\Cookies?
2 Add a Pause line afterwards so you can have a look for any error response.

All the best,
Denis
You're absolutely right!! Using the appropriate "net use" to assign the mapped drive the copy works fine. Thanks for the help.
 

My Computer

System One

  • OS
    Windows 11
Top Bottom