Results 1 to 3 of 3

Thread: batch file /win2000

  1. #1
    Junior Member
    Join Date
    Sep 2002
    Location
    Honolulu HI
    Posts
    35

    Question 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
    Tom

  2. #2
    Precision Processor Super Moderator egghead's Avatar
    Join Date
    May 2002
    Location
    In Your Monitor
    Posts
    3,546

    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
    ------------------------------------------------------------



  3. #3
    Junior Member
    Join Date
    Jul 2002
    Posts
    28
    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
  •