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: run a .bat sortcut in cmd window


04 Aug 2011   #1

Windows 7 Home Premium 32bit
 
 
run a .bat sortcut in cmd window

I tried to run a Batch file shortcut in a cmd window. It failed because it won't realise the shortcut. Is there any way to do it? Thank you very much!

My System SpecsSystem Spec
.

04 Aug 2011   #2

Windows 8 Core X64
 
 

Where is the batch file located? To run from a Command Prompt it either has to be in the current directory (C:\Users\<youruserid> ) or in a directory contained in the PATH environment variable.

To see what directories are in path, type path from a Command Prompt.
My System SpecsSystem Spec
04 Aug 2011   #3
Microsoft MVP

Vista and now 7 in 32 and 64 bit.
 
 

Try changing .bat to .cmd
My System SpecsSystem Spec
.


05 Aug 2011   #4

Windows 7 Home Premium 32bit
 
 

I tried to change .bat to .cmd. The shortcut to a .cmd file still can not be executed in command window. I think set environment variable PATH is the best way can do. Thank you everyone!
My System SpecsSystem Spec
Reply

 run a .bat sortcut in cmd window




Thread Tools




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 02:52 AM.
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