Windows 7 Forums


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 7 Pro X64
Space Coast of Florida
 
 

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

Vista and now 7 in 32 and 64 bit.
Denmark
 
 

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 problems?



Thread Tools



Similar help and support threads for: run a .bat sortcut in cmd window
Thread Forum
Adding 'open in new window' to search results, & opening in new window General Discussion
Mouse opens a window, however cannot click inside the window. Hardware & Devices
Open Excel workbook in active window rather than first window Microsoft Office
Window 7 Window Media Player Full Screen Lock (Sort Of Party Mode) Music, Pictures & Video
Sortcut without UAC System Security


All times are GMT -5. The time now is 02:48 PM.


Seven Forums Android App Seven Forums IOS App Follow us on Facebook

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
  

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