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
fiat

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 win7 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
yowanvista

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 win7 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
fiat

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
Thread Forum
Invalid path in environment variables. Safe to delete?
Hi. Is it safe to delete the entry shown? I don't see a folder anywhere on C: (windows partition) named BVTBin even with super-hidden files shown. I'm asking because I don't understand why the entry exists.
Performance & Maintenance
Cmd Batch Files Running Without Finishing: Recursion problem??
I have a very simple batch set in a file called sed.cmd. set input="D:\WebServerConfig\httpd\logs\old logs\webserver-access.log" set output="D:\WebServerConfig\httpd\logs\old logs\webserver-access-trimmed.log" set...
General Discussion
accidentally deleted path in environment variables
i was editing the path in environment variables after installing jdk-6.0 when i accidentally deleted it...is there a way to recover it? or if not , can somebody tell me what was the default variable path was that? i'm using windows 7 starter...and a toshiba laptop.....please i really need help...
System Security
PATH's and ENVIRONMENT
How can I stop win7 from growing all over drive C! It starts out as a nice small install, add a few extras, then a month later 40gb is gone! its mostly growing in the appdata folder and other temp area's its most annoying I ask this as I am looking at using win7 on my latest CarPC install...
Installation & Setup

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 07:13.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App