Solved run a .bat sortcut in cmd window

datactrl

New member
Local time
4:02 AM
Messages
18
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 Computer

OS
Windows 7 Home Premium 32bit
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 Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Lenovo IdeaCenter 450
OS
Windows 10 Pro X64
CPU
Intel Quad Core i7-4770 @ 3.4Ghz
Memory
16.0GB PC3-12800 DDR3 SDRAM 1600 MHz
Graphics Card(s)
Intel Integrated HD Graphics
Sound Card
Realtek HD Audio
Monitor(s) Displays
HP 22" LCD
Screen Resolution
1680 x 1050
Hard Drives
250GB Samsung EVO SATA-3 SSD
2TB Seagate ST2000DM001 SATA-2
1.5TB Seagate ST3150041AS SATA
Keyboard
Dell USB
Mouse
Lenovo USB
Internet Speed
Cable via Road Runner 3MB Upload, 30MB Download
Antivirus
Windows Defender, MBAM Pro, MBAE
Browser
Seamonkey
Other Info
UEFI/GPT
PLDS DVD-RW DH16AERSH
Try changing .bat to .cmd
 

My Computer

Computer Manufacturer/Model Number
Three desktops and one laptop with good specs..
OS
Vista and now 7 in 32 and 64 bit.
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 Computer

OS
Windows 7 Home Premium 32bit
Back
Top