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.

bat file does not see login name folder

Discussion in 'Windows XP' started by wahlroot, 2004/03/25.

Thread Status:
Not open for further replies.
  1. 2004/03/25
    wahlroot

    wahlroot Inactive Thread Starter

    Joined:
    2002/08/15
    Messages:
    546
    Likes Received:
    1
    When I enter DEL /s /q c:\Docume~1\Temp it will dump the files in Temp. When I enter DEL /s /q c:\Docume~1\Walt&Betty\Temp it tells me Could not find DEL /s /q c:\Docume~1\Walt I wonder if it is because of the & instead of and. If I try to rename the folder it tells me I can't because it is a system folder. I changed the name in Control Panel, User Accounts, Change an Account, Change my Name, But that did not change the folder name. I might be able to change the name in Safe Mode, but I do not know if that would be safe to do.
     
  2. 2004/03/25
    reboot

    reboot Inactive

    Joined:
    2002/01/07
    Messages:
    831
    Likes Received:
    0
    Change your .bat to read thus:
    DEL /s /q c:\Docume~1\Walt&B~1\Temp
     

  3. to hide this advert.

  4. 2004/03/25
    wahlroot

    wahlroot Inactive Thread Starter

    Joined:
    2002/08/15
    Messages:
    546
    Likes Received:
    1
    I tried that and got. Could not find C:\docume~1\Walt The system could not find the path specified. It did not work either.
     
    Last edited: 2004/03/25
  5. 2004/03/25
    Newt

    Newt Inactive

    Joined:
    2002/01/07
    Messages:
    10,974
    Likes Received:
    2
    Try running the bat file from cmd.exe rather than command.com and use the long file name rather than the ~ shortened 8.3 name.
     
    Newt,
    #4
  6. 2004/03/26
    reboot

    reboot Inactive

    Joined:
    2002/01/07
    Messages:
    831
    Likes Received:
    0
    That might work, but I bet it's still going to hang on the "& ".
    Anyone remember what the ascii code is for &?
     
  7. 2004/03/26
    goddez1

    goddez1 Inactive

    Joined:
    2002/01/12
    Messages:
    2,975
    Likes Received:
    49
    alt 038
     
  8. 2004/03/26
    wahlroot

    wahlroot Inactive Thread Starter

    Joined:
    2002/08/15
    Messages:
    546
    Likes Received:
    1
    I went to Control Panel, User Accounts, Create New Account, and created a new account. WaltAnd Betty. Copied the files from Walt&Betty to WaltAnd Betty. Changed the line in the bat file to. DEL /s /q c:\Docume~1\WaltAn~1\Temp It works. I am guessing that it was the "&" that was causing the problem. Everyting else seems to work also. Will give it a few days and will try to delete Walt&Betty Account. Thanks to everyone.
     
    Last edited: 2004/03/26
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.