batch

  1. #1
    zerozone is offline Dedicated Member

    batch

    ECHO

    rename D:\a\aaa.txt D:\a\aa.txt


    pause


    why this dont work i try to rename the aaa.txt to aa.txt


  2. #2
    jephree is offline ¨*·.¸ «.·°·..·°·.» ¸.·*¨
    Try REN instead of rename.


    Some DOS guides here:

    http://www.google.com/search?hl=en&s...ch+rename+file

  3. #3
    zerozone is offline Dedicated Member
    it didnt work
    C:\Documents and Settings\English\Desktop>ECHO
    ECHO is on.

    C:\Documents and Settings\English\Desktop>REN D:\a\aa.txt D:\a\aaz.txt
    The syntax of the command is incorrect.

    C:\Documents and Settings\English\Desktop>pause
    Press any key to continue . . .

  4. #4
    zerozone is offline Dedicated Member

  5. #5
    jephree is offline ¨*·.¸ «.·°·..·°·.» ¸.·*¨
    Perhaps you can find something useful here:

    http://www.google.com/search?sourcei...rename+command

  6. #6
    zerozone is offline Dedicated Member
    ECHO

    rename D:\a\aa.txt aaz.txt


    pause

    it works, do you know about this that i have to take out the
    C:\a\
    thing?

  7. #7
    zerozone is offline Dedicated Member
    does the rename work when i go in deeper in the path or when the folder name is long other there something that i need to replace for Program Files like this %SystemRoot%\system32\restore\rstrui.exe
    Last edited by zerozone; 26-07-2007 at 09:48 PM.

  8. #8
    zerozone is offline Dedicated Member

  9. #9
    zerozone is offline Dedicated Member

  10. #10
    zerozone is offline Dedicated Member
    why it dont workes when i try it in the program files?

+ Reply to Thread