Windows 10 Command Prompt system cannot find the file specified

1

2

Environment

Windows 10 1511 Stable Release UAC Disabled Disabled UAC I have a C: and an M: mounted from another Windows Machine

Issue

I can view, edit & delete contents of M: without any issues when using Windows Explorer

But when i try to access the same via command prompt

M: or cd M: both have same error

I got the following error "The System Cannot Find the file Specified"

Error Screenshot

Impact

i have many batch scripts that relies on the M: drive and they don't work anymore

What i have tried so Far

  1. Rebooted the machines

SeanClt

Posted 2016-04-26T18:32:32.137

Reputation: 1 960

CMD with admin right or not? – user364455 – 2016-04-26T18:39:08.667

Yes attached screenshot of the error, Also UAC disabled so CMD opens as Administrator even regularly, but same way issue when i right click and select "run As administrator" – SeanClt – 2016-04-26T18:39:33.173

Are you sure that UAC disabled, but not in auto-allow mode? – user364455 – 2016-04-26T18:42:29.557

Have you tried "cd M:"? – InterLinked – 2016-04-26T19:27:23.007

yes cd M: same result attached screenshot of UAC – SeanClt – 2016-04-26T19:43:12.797

just fixed my issue updating the answer – SeanClt – 2016-04-26T19:43:34.580

Thanks for the comments, your comments kept me going in testing in further – SeanClt – 2016-04-26T19:53:10.893

cd /d M: would be the correct command in cmd.exe (see also https://superuser.com/questions/610787/how-to-use-the-cd-command-in-windows-powershell-to-change-the-drive-that-i-am-wo/610789#610789) – Austin T French – 2017-06-21T11:37:16.133

What does this have to do with UAC? I just started having this issue and I don't know what changed. I cannot access any files, create new files or directories from the command line even when running as Admin. No issues when using File Explorer. – user24601 – 2020-02-12T16:41:18.820

Just marked the solution which worked give it a try – SeanClt – 2020-02-12T16:45:54.960

Answers

0

So even thought i had disabled UAC from Control Panel > User Accounts > Change User Account Control Settings to Never Notify but it still didn't help

I had to disable the UAC from registry, this i remember from working on a HP software where it specifically told to disable from registry

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System

In the details pane (Right Pane)

locate the EnableLUA key (REG_DWORD type).

Double click to Modify.

In the Value data box, type 0 (zero),

and then click OK.

restart the computer.

SeanClt

Posted 2016-04-26T18:32:32.137

Reputation: 1 960

this breaks the new store apps, this is why moving slider down since Win8 no longer disables UAC completely. – magicandre1981 – 2016-04-27T04:26:26.447

Can you provide specifics which app broke it so i can test that as well? I don't use much apps but still would like to confirm – SeanClt – 2016-04-27T12:52:17.993

All apps from the Windows store don't work if UAC is disabled via EnableLUA set to 0. – magicandre1981 – 2016-04-27T15:36:07.933

0

I would recommend checking whether Command Prompt can recognize it or not by using the diskpart command and then list volume.

It will show all activated drives on your Windows computer that Command Prompt can recognize.

diskpart
list volume

KevinD

Posted 2016-04-26T18:32:32.137

Reputation: 473