Sign in with
Sign up | Sign in
Your question

Bat file is not working in windows Xp

Last response: in Windows XP
Share
March 17, 2011 1:47:20 PM

Actually i created one Bat file to list out the mounted volume output. if i clicked the bat file means it's opening the DOS prompt but am not getting the output file..

Where ever i tried the same commands from dos it's giving output

what is the problem ? it's working other machines

My Batch File commands

@ ECHO OFF
cd\
Mountvol > "C:\DOCUME~1\ADMINI~1\Desktop\MountVolOutput.txt"
March 17, 2011 3:08:48 PM

you mountvol command is incomplete.

mountvol [Drive:]Path /L

your BAT file should look something like this:

@ ECHO OFF
cd\
Mountvol C: /L > "C:\DOCUME~1\ADMINI~1\Desktop\MountVolOutput.txt"
m
0
l
!