1. You are viewing our forum as a guest. For full access please Register. WindowsBBS.com is completely free, paid for by advertisers and donations.

Sorry, index.dat again

Discussion in 'Legacy Windows' started by Christer, 2003/01/30.

Thread Status:
Not open for further replies.
  1. 2003/04/24
    Alice

    Alice Banned

    Joined:
    2002/01/08
    Messages:
    938
    Likes Received:
    0
    OK by me if you want to keep the thread open :D

    Seriously,

    I couldn't find a thing about running a batch file in windows after ending task on Explorer in order to delete files "in use" by windows. How did you dream that up?

    Being conservative by nature I figured I'd let someone else test it out.

    By the way, does it make any difference using a semicolon instead of REM to have a line ignored?
     
    Last edited: 2003/04/24
  2. 2003/04/24
    mflynn

    mflynn Inactive

    Joined:
    2002/08/14
    Messages:
    4,141
    Likes Received:
    9
    Didn't dream it up, knew it, but sometimes I forget what I know about these things!

    The simi colon works in config.sys but not in all vers of OS bat files.

    But the rem is read by the command processor as it walks thru the bat. The most effecient way to do a rem in a bat is double colons :: at the begining of a rem/comment.

    The command processor interpets this as a jump statement as in

    goto exit
    :exit

    and only processes these if sent there by a goto statement so it just passes it unless it was sent there by a jump.

    Small speed increase these days but back in DOS win31 etc in large complex bats with a lot of comments and help statements it was noticeable.

    Mike
     

  3. to hide this advert.

Thread Status:
Not open for further replies.

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.