Share via

Cannot Open .bat programs.

Anonymous
2011-12-21T19:37:21+00:00

Hi, I have several .bat programs I need to open but my Win7 64bit refuses to open them. All the .bat programs are in a folder. When I go to open them (double-click on them) I get this error: "Windows cannot find 'C:\Users\Home\Desktop\MCP\Decompile.bat. Make sure you typed the name correctly and try again." That is the file I try to open and the error that comes up. I could open it before, but I think something happened that I can't now and I can't remember. I am the admin of the computer and the only user. Help?

Windows for home | Previous Windows versions | Files, folders, and storage

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

Anonymous
2012-02-12T23:01:42+00:00

If you are still having issues with opening.bat files on a 64bit, computer this might be a fix.

I ran in to an issue when using some legacy .bat.exe application this resolved my issues.

Copy your .bat files to the x86 program files.

Right click your .bat file and select to create a shortcut

Create a folder on your Desktop or C:\drive and added your .bat file and the newly created x86 shortcut.

THis will allow the .bat file to use x86 directory for .bat execution

Example:

"C:\Program Files (x86)\v2.0 mod\v2.0 mod.bat"

Was this answer helpful?

1 person found this answer helpful.
0 comments No comments

9 additional answers

Sort by: Most helpful
  1. Anonymous
    2015-10-27T18:42:42+00:00

    Neurogami,

    I have not had this issue with windows 10 64bit machines, you are correct on the %SystemRoot%\system32\cmd.exe path.

    However Windows 7 64 bit seemed to call the x86 directory when executing .bat files...I can only assume that it was related to WMI association that system32 was and should be looked on as a x86 program.

     really, the trick was to use the x86 folder to store your .bat files, then you could use (Powershell or a cmd .bat call to the x86 short cut) which can be located anywhere on your PC.

    You could use Windows Sysinternals PsEexec. to upload the .bat files to the x86 location and script the up load if it was needing to be deployed on a number of computers.'

    PsExec download:

    https://technet.microsoft.com/en-us/sysinternals/bb897553.aspx

    The below link to one of my PowerPoints might assist you to get your .bat functioning in the method and with the level of access your looking for, I created the PowerPoint located on my One Drive for some tech a few years ago, as there was a need to leverage the NT Authority subsystem for WBEM.exe usage which was failing and needed the to be ran as the NT Authority permissions. Along with some other crazy security stuff we were doing on the servers.

    • However, I never ran any (.bat) cmdlet's with this level of permission as most were pushed with PS exec to x86 folder and the short cuts were added to the Admin$ folder for tech to leverage during remote support. was the easiest way to not have them know the administrative password on the Servers.
    • Note, this issue with the inability to run .bat files on 64 bit machines does not affect me on Windows 10 & I have been using the Windows 10 for many months now as a MSFT Previewer & employee.

    CMD access to Net User (NT Authority\System)http://1drv.ms/1U51N5e

    R/

    sbryson

    Was this answer helpful?

    0 comments No comments