Windows 8.1 Will Not Run Batch File

btpoole

Distinguished
Sep 21, 2011
8
0
18,510
I coded a batch script on a Windows 7 32 machine. I have put the script on a Windows 8.1 64 machine. The script will not execute. It opens cmd window and flashes some info then closes. I have attempted to put a pause and a timeout in code to hold it open but nothing works. Is there something in Windows 8.1 that does not interpret batch commands? I have tried to run as admin also, no luck.
 
Perhaps you're trying to access things that have been renamed or were simply never in the system? Batch files should still work, even if most things have been moved over to Power Shell (which you should learn just in case future editions don't include batch file support)
 

btpoole

Distinguished
Sep 21, 2011
8
0
18,510
I didn't actually mean to click solved on this, it is not solved. If I am trying to access something that never existed, it should not have worked and continues to work under Windows 7.
 


Unless you post the batch contents nobody can tell you if it uses functions that have been removed.