Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: 64-bit not running batch files/Path environment


17 May 2011   #1

Windows 7 Professional 64-bit
 
 
64-bit not running batch files/Path environment

Greetings to all fellow Win 7ers (this is my first post...)

I recently got a new laptop running Win 7 Pro 64-bit and as part of my initial third-party software installations I inadvertently overwrote the 'Path' environment variable (instead of appending to it). I subsequently tried adding c:\windows\system32; to it but don't know if this is doing anything. I have not managed to find any definitive information on what the Path ev should be on a new Windows 7 64-bit install.

The thing is I loaded a batch process which I had on another Win 7 (32-bit) system but when I key the bat filename in cmd.exe (without the extension or double-click it) I get this error:

"The syntax of the command is incorrect."

If I key the bat filename with the extension, it runs but then stops because it seems not to recognize another program which the bat file calls even though I have the Path ev set for that program.

Anyone know what might be going on?

Thanks

My System SpecsSystem Spec
.

17 May 2011   #2

Windows 8.1 Pro x64
 
 

Quote   Quote: Originally Posted by fiat View Post
Greetings to all fellow Win 7ers (this is my first post...)

I recently got a new laptop running Win 7 Pro 64-bit and as part of my initial third-party software installations I inadvertently overwrote the 'Path' environment variable (instead of appending to it). I subsequently tried adding c:\windows\system32; to it but don't know if this is doing anything. I have not managed to find any definitive information on what the Path ev should be on a new Windows 7 64-bit install.

The thing is I loaded a batch process which I had on another Win 7 (32-bit) system but when I key the bat filename in cmd.exe (without the extension or double-click it) I get this error:

"The syntax of the command is incorrect."

If I key the bat filename with the extension, it runs but then stops because it seems not to recognize another program which the bat file calls even though I have the Path ev set for that program.

Anyone know what might be going on?

Thanks
Try 'C:\Windows\SysWOW64' instead of 'c:\windows\system32'
Note that if that software uses 32-bit drivers it won't work on 64-bit
My System SpecsSystem Spec
17 May 2011   #3

Windows 7 Professional 64-bit
 
 

This did not work. I have just managed to try this batch process on another pc running Win 7 64-bit and would you believe it, if I run as Administrator, it runs.

So the status of the bat file issue is:
It runs ok on Win 7 32-bit
It doesn't run on my 64-bit new laptop
It runs as Administrator on another 64-bit system

I'm now wondering if this is to do with permissions/profile/Win 7 UAC etc.
My System SpecsSystem Spec
.


Reply

 64-bit not running batch files/Path environment




Thread Tools



Similar help and support threads for2: 64-bit not running batch files/Path environment
Thread Forum
Cmd Batch Files Running Without Finishing: Recursion problem?? General Discussion
Solved accidentally deleted path in environment variables System Security
HELP WITH RUNNING WINDOWS 7 ENVIRONMENT RECOVERY DISC Installation & Setup
PATH's and ENVIRONMENT Installation & Setup
Running a 4/6 screen windows 7 environment Graphic Cards
HOW TO: change path in batch mode General Discussion

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 06:31 PM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33