batch file to find any folder and rename it

Discussion in 'MFC' started by wickitom, Jun 4, 2010.

  1. wickitom

    wickitom New Member

    Joined:
    Jun 4, 2010
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    Hi,

    I hope I am posting this in the right thread.

    I am having a hard time writing a batch script (*.bat) that will do this simple procedure.
    At the location of the *bat file there will be one folder, I need the batch file to find that folder whatever it is name and rename it to anything specified, like "000".

    That's it. The current directory where that batch file will be located will always have another folder, that folder might have other folders inside but the folder present in the current directory must be renamed to "000". I will not know that folders name, it will change constantly.
     
  2. Mike911

    Mike911 New Member

    Joined:
    Jun 6, 2010
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    0
    Yes, thats easy but what didnĀ“t you know then ?
    You can read/write textlines or binary code to files, create+rename+delete them easily. Yust look for fileaccess in the web.
     

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.
    Dismiss Notice