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 10 Pro 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

 run a .bat sortcut in cmd window

Thread Tools

Similar help and support threads
Thread Forum
Window 7 Start-Up Repair completes but window fails to boot.
After rebooting my system, it recommended that i do a start up repair. After the repair completed i recieved the black screen right before choosing USER , so i tried 3x more to repair which each completed but same outcome till the point it just says cant repair automatically . Then i tried to...
General Discussion
Can i move the X window close button to the bottom of the window?
Hi, This may sound stupid but i need to relocate the window close and resize buttons to the lower part of the window instead of the top so i can move the window to the upper part all the way up and it doesnt bounce back. Is it possible? Thank you.
Adding 'open in new window' to search results, & opening in new window
Whenever I search in W7, I want to have the ability to open found folders in a new window. If I r-click, that option is not there. Is there a way to add this to W7? Also: When I go to 'open file location', the file's folder opens in the same window - highly annoying. In Vista, it opens in a new...
General Discussion
How do I make partitions in running window or save window
I have windows 7 home premium genuine. When I purchased ,there was only one drive 'C' but now I want to make partitions , pls inform how can I do that as I also want to install again same window ? It may increase the system performance. My laptop specs are ; Dell inspiron n5110 , core i7...
Installation & Setup
Window 7 Window Media Player Full Screen Lock (Sort Of Party Mode)
Hi, Anyone knows how to lock window media player 12 in full screen . I saw people do but i dont know how . Any ideas ?
Music, Pictures & Video
Sortcut without UAC
Hi! I'm new here. This is my first post, sorry if I do something wrongly. And also sorry for my english. :) Can somebody tell me how can I create a sortcut to a program (e.g. Total Commander) on the desktop or in the startup folder without getting the UAC window when I start it. I tried to set...
System Security

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 17:34.

Twitter Facebook Google+

Windows 7 Forums

Seven Forums Android App Seven Forums IOS App