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
Not refreshed Background (Parent) Window while Window Drag
Hi, I need to capture video of my Windows 7 screen operation and I found a very disturbing thing what can be wrong while capturing. When I move a window it's background app does not refreshing but then when the window header is released. My screenshot to see the problem:...
General Discussion
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
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
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 05:35.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App