Back to Forums








View Full Version : batch file /win2000


tomyrush
December 17th, 2002, 15:16 PM
I have been trying to get a batch file to work without success. I believe it is because one of the directories has a space in the middle of it's name. the qualified name is
"C:\WINNT\Internet Logs\xyzfile*.txt"
I am trying to delete some logs that another program creates.
When I use the Command Prompt window - I have no problems, but when I attempt to use a batch file - the batch file never completes. I don't get an error message.

I have tried wild cards and still can't get the batch file to work. The entire batch file is

c:
cd winnt
cd internet logs
del xyzfile*.*

Any help will be appreciated

Tom

egghead
December 17th, 2002, 16:53 PM
Originally posted by tomyrush
I
c:
cd winnt
cd internet logs
del xyzfile*.*

Any help will be appreciated

Tom

try
c:
cd winnt
cd winnt/internet logs
del xyzfile*.*

or
dos file format
(i think i spelled the dos 8.3 right)

cd winnt
cd winnt/intern~1
del xyzfile*.*


worth a try regardless

cheers
egghead

Ramchip
December 17th, 2002, 19:46 PM
Just put quotation marks around the one with the space in it...like this...

cd "internet logs"

I think that'll get you to where you want to be!!

Ramchip