-
December 17th, 2002, 16:16 PM
#1
batch file /win2000
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
-
December 17th, 2002, 17:53 PM
#2
Precision Processor
Super Moderator
Re: batch file /win2000
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
------------------------------------------------------------
-
December 17th, 2002, 20:46 PM
#3
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks