简体   繁体   中英

'fc' is not recognized as an internal or external command, operable program or batch file

Even running as an administrator, it seems only to work when I'm in the folder: C:\\Windows\\System32\\

Any advice on how to make it work from anywhere in the C:\\ directory ?

Your PATH statement is fubar.

It should include at least these things assuming windows in in c:\\windows

C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem

You can set/update your path with this command:

SETX PATH "%PATH%;c:\windows\system32"

Or add the /M if you run an elevated prompt to set it systemwide for all users

To see the effect of this change you have start a new command prompt.

If you only want to update the path in your current command prompt do:

SET PATH=%PATH%;c:\windows\system32

To examine your current PATH environment var type

SET PATH

at the command prompt. To spare 4 keystrokes you can also leave out SET

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM