In bulk to rename files in a folder by using the DOS command line or a batch file.

Can someone help with this problem, please?  I remember seeing the DOS command line to do a mass renaming of files in a folder or a batch file. for example, vacation photos are all in the format DSC00001.jpg to DSC001234 and I want to change it to something like, say, Rome0001.jpg to Rome1234.jpg.

How about this:
Go to the folder of your files in that.  Create a text file, and open it (Windows should use Notepad, that very well).
in the file type:
Ren dsc*.jpg rome*.jpg
Now, save the file as:
(Make sure you call it ".bat" and save it as a txt document, which will make a simpel file and not add a strange formatting)
From there, just double-click this file and it renames all your pictures accordingly.

Old timer

Tags: Windows

Similar Questions

  • Create a new folder or change the name of a folder on the desktop does not display until I use the refresh command

    After changing the name of a folder or a file on the desktop or by creating a new folder (and then hit enter), the folder or the text file doesn't change - until I use the Refresh command. Then, the text shows correctly and the movements of folder or a file in a place open to the top left of the screen. Before using "Refresh" the folder or the file will not open. When I save a file on the desktop is not visible until the 'Refresh' is used. Sometimes, but not always the same behavior occurs in other folders as well.  I use Win XP SP3. Can someone please shed some light on this?


    ·        Since when are you facing this problem?

    ·        Remember to make changes to the system?


    Method 1:

    I suggest you check in safe mode. Follow the steps mentioned below.

    a. restart the computer and keep tapping F8 until you reach the start menu.

    b. click on safe mode from the list and press ENTER.

    Check if the problem persists.

    Method 2:

    I suggest you to scan your system for viruses and malware using a care Microsoft and Microsoft security essentials. Check the links below.

    Method 3:

    Create a new user account and check if the problem persists.

    How to create and configure user accounts in Windows XP

    Thanks and regards.

    Thahaseena M
    Microsoft Answers Support Engineer.
    Visit ourMicrosoft answers feedback Forum and let us know what you think.

  • Trojan: Win32 / Sysdef - fake. How do I restore office files, etc. by using the attrib command? Thank you

    I worked with the Microsoft Support to discover some hidden files. The tech told me that the files are still there, just hidden. He used the attrib command to discover some of the files. The tech said the remaining files must be made manually, how?

    How to find the files? My office is still hidden. I have bookmarks and word files.

    Thank you

    See Steve Cochran's response, dated June 2, 2011 in this thread:

    See the instructions for removing the difficulty system in the following link: which includes a presentation about the hidden files and folders.

    Are you sure that you have more malware on the computer?  Have you run everything on scanners such as Malwarebytes or Superantispyware?

  • When I click to share a folder by using the OneDrive site, no longer has the ability to set the folder to the public

    When I click to share a folder by using the OneDrive site, no longer has the ability to set the folder to the public

    It was clearly wrong because she's always there and I took a picture of him. :)

  • How to use the del command or any other to ignore files that it cannot remove (files in use) and continue to delete other files in a folder?

    I want to do a batch tha clean windows Temp folder. For this, I tried the del command, but the problem is to stop the deletion of files when it cannot remove a file in use. I want that he skip this file and continue to delete the other files too. I hope you guessed it. Please help me.


    Thanks for posting your question in the Microsoft Community.

    The question you posted would be better suited in the MSDN Community.

  • Folder locked by the cacls command

    I use win XP and I locked my folder by using cacls command (in drive D:\) - "cacls Rushi e /p everyone: n»

    then I tried to unlock it by - "cacls Rushi/e/p everyone: f.
    but it gave an error saying "access denied!"
    I had my important files in it.
    Please help me find the access to the file as soon as possible.

    If you need access to a file or a folder that you have no rights, you must take ownership of that file or folder. When you do so, you replace the security permissions that were initially created for the file or folder.

    Log on as an administrator

    You must be running Windows as an administrator to change permissions of a file or folder security. If the computer is your personal computer, you are probably already logged on with an administrator account. If the computer is part of a network at work, you may have to ask the system administrator for help. To verify that you are connected to Windows with a user account is an administrator on the computer, see the Microsoft Web site at the following address:

    Start Windows XP Home Edition in safe mode

    If you run Windows XP Home Edition, you must start the computer in safe mode, and then log on with an account with administrative rights in order to access the Security tab the Security tab access is necessary to change the security permissions. If you are running Windows XP Professional, you don't have to start the computer in safe mode. For more information about how to start Windows XP in safe mode, click on the number below to view the article in the Microsoft Knowledge Base:

    304449 how to start the tool at the command prompt system restore in Windows XP

    Disable Simple file sharing in Windows XP Professional

    If you use Windows XP Professional, you must turn off Simple file sharing. By default, Windows XP Professional uses Simple file sharing when it is not joined to a domain. For more information on how to do this, click on the number below to view the article in the Microsoft Knowledge Base:

    307874 how to disable simplified sharing and set permissions on a shared folder in Windows XP

    To take ownership of a file or folder
    How do I make a file

    You must be the owner of a protected file to access. If another user has restricted access and you are the computer administrator, you can access the file to appropriate.

    To take ownership of a file, follow these steps:

    1. Right click on the file that you want to take control and then click Properties.
    2. Click on the Security tab, and then click OK in the security message (if one appears).
    3. Click Advanced, and then click the owner tab.
    4. In the name list, click administrator, or click the Administrators group, and then click OK.

      The administrator or the Administrators group now owns the file.

    To change the permissions on the file that you now own, follow these steps:

    1. Click on Add.
    2. In the enter the names of the objects to select ( examples ) the list, type the user account or the group that you want to have access to the file. For example, type administrator.
    3. Click OK.
    4. In the group or user names list, click the account you want, and then select the check boxes of the permissions you want to assign to this user.
    5. When you're done to assign permissions, click OK.
    6. You can now access the file.

    How to take ownership of a folder

    You must have ownership of a protected folder in order to access it. If another user has restricted access and you are the computer administrator, you can access the folder by taking possession.

    To take ownership of a folder, follow these steps:

    1. Right click on the folder that you want to take control and then click Properties.
    2. Click on the Security tab, and then click OK in the security message (if one appears).
    3. Click Advanced, and then click the owner tab.
    4. In the name list, click on your user name , or click on administrator , if you are logged in as administrator, or click the Administrators group. If you want to take ownership of the contents of the folder, select the check box Replace owner of subcontainers and objects .
    5. Click OKand then click Yes when you receive the following message is displayed:
      You are not allowed to read the contents of the directory folder name . Do you want to replace the the directory permissions with permissions granting you full control?

      All permissions will be replaced if you click Yes.

      Note folder name is the name of the folder you want to take charge.

    6. Click OK, and then reapply the permissions and security settings that you want for the folder and its contents.
  • check the existnace file before using the HOST command

    Dear all:

    We use the version of forms 6i

    I wrote after encoding to move a local system file to another location: following coding works to move the file.


    in_file_name VARCHAR2 (100);
    in_file_path VARCHAR2 (100);
    out_file_path VARCHAR2 (100);
    the_command VARCHAR2 (2000);
    in_file_name: = pk_parameter.setting('IMGSFILE');
    in_file_path: = pk_parameter.setting('IMGSPATH');
    out_file_path: = pk_parameter.setting('IMGTPATH');

    the_command: = 'move' | in_file_path | in_file_name |
    ' '|| out_file_path | out_file_name;

    Host (the_command, NO_SCREEN);
    IF this is Form_Success THEN
    Message ('error - file is not moved');
    Message ("file moved successfully");
    END IF;

    above code returns TRUE in stand conditions if the file is exist in the given folder or not? I checked it twice.

    1: place the file in the folder source and then run the coding, it returned message like "file moved successfully.

    2nd: the source folder is empty, when I have executed the coding, it returned message like "file moved successfully.

    Now I want to check before running the command move, if the source files exist in the source folder, if yes, then move on the other on-screen message and raise form_trigger_failure;

    any idea of guru?

    Kind regards

    Hassan Raza

    You must use the command line to do:

    host('cmd /c move '||in_file_path||in_file_name||' '||out_file_path||out_file_name, no_screen);

    to check if the file has been properly moved, you can use text_io:

      xfile text_io.file_type;
      xFile := text_io.fopen(out_file_path||out_file_name, 'R');
      --file exists
      when others then
        if text_io.is_open(xFile) then
        end if;
        -- file does not exist, so moving was not successful


  • Can access the shared folder by using the name of the server, but is unable to use the intellectual property

    Hi, I need help with a very strange problem.

    I have a Server 2003 domain controller to PC and all the domain user can access any shared folder of the server using IP address or FULL domain name.

    So I joined a R2 of 2012 new server to the domain as a workstation normal and not as a new domain on the network controller, and the problem is that one cannot access a shared folder on the new server by using the IP, but can be accessed using the name of the computer.

    My Admin user can access the folder using the IP address or the name comp. on any work, but the user of my AD position may not use intellectual property.

    I can using Ping IP or name of the computer for every user of AD.

    Please check the attached images.

    When I try to access it using IP, it gives me the following error:

    \\ is not accessible. You might not have permission to use this network resourse. Contact the administrator of this server to fing out if you have access permissions.

    Currently, there are no available connection server to process the logon request.


    You may need to ask the question on the TechNet Forums:

    Kind regards

  • Running a Seq file when running the GUI (command line option) return an error


    I use a LabVIEW based UI to run/execute a file in sequence by using the command line option. My command line is "Test DUT' D:\QF\GUI-test-Sequential.seq D:\QF\GUI-Test.exe - runEntryPoint

    When I ran the get 3 popup saying that some of the perameters 'is not a valid file of LabVIEW"(see attachments). No idea how to avoid these messages? (The user interface works very well and runs the entrypoint of the USE Test)

    LabVIEW 8.5

    TestStand 4.1

    Thank you.

    Hi Tom,

    When you create a new application to your specification to Build, you must set the 'Pass all arguments for application command line' in the Advanced tab.

    Once you do that it should all work.


    Ray Farmer

  • How can I access my music folder by using the start menu. I'm used to be able to do.

    When I turned on my computer this morning, I wanted to go to my music folder that I normally have access using the 'start' button in the lower left corner of the screen. Normally, I get instant access. Today, I get a message that needs to close Internet Explorer. I am currently using Firefox as my browser, just to try out it. I use Windows XP Home Edition.

    When I turned on my computer this morning, I wanted to go to my music folder that I normally have access using the 'start' button in the lower left corner of the screen. Normally, I get instant access. Today, I get a message that needs to close Internet Explorer. I am currently using Firefox as my browser, just to try out it. I use Windows XP Home Edition.

    If you go to... My Documents, then my music
    It works no better?

  • 1. an other than sfcdetails.txt file name can be used in the findstr command line? Explain your answer.

    1 what is the purpose of the edit command?

    2 explain the purpose of the takeown command when replacing a system file.

    3 explain why the icacls command is necessary in the process of.

    4 list some ways that you can find a good copy of the corrupted system file.

    Is this your homework?

  • moving database files and redologs using the dd command.

    Hi all,

    I need to know if someone have take a cold copy of database (data file and redologs) using the unix dd command.
    The problem is related to the value to be assigned to "bs" in the DD.

    For the data file, I know to do the same thing of block_size for the tablespace. I'm not sure of the value to assign to "bs" to the redologs.

    Any suggestions are appreciated.
    Thanks in advance


    PS. I'm pass raw partitions of the data files and of redologs from HP - UX 11.11 RISC on SYMM8830 for HP-IA64 using lvm on HP XP24000 with veritas.

    Published by: on October 17, 2008 12:23

    as to the "bs" to command "dd"?

    DD if = of = bs = 1000M

    If your raw device is in GBs, you can give a higher as 1024M... Sometimes the operating system does not have higher values as 1 GB... in this case, you can give all the values as 1024 K, 100 M, 500 M... Like this...

  • Cannot open the document because the file is locked. Use the 'Properties' command in Windows Explorer to open the file.

    I am a member of the Administrators group on my computer.  I have a folder full of files and other folders that I denied access for administrator users.  Not sure when it appeared that I had gone for the holidays, but now I am unable to open the files located in this folder.  I can delete, move, and rename at will, but can not open.  I tried all the resets of permissions I can think as well as read all knowledge base articles I can find but still not get these files to open.

    I've recently updated MS Security Essentials, do not know if this has a any correlation.

    At one point, I saw the certificate and it ranked as not approved.  How would this change?  Would this impact my ability to open files yet again let me move, delete and rename?  If so, how can I solve?

    I restore to a restore point previous and not yet open - also received an error message telling me MS Security Essentials would not work properly.  So I undid the restore.

    Thank you in advance for any input.  PatrixUSA

    In fact, it starts to make a lot of sense today.  The files that you have problems with have been encrypted with EFS.  EFS is closely related to the NTFS file system.  As long as you move files encrypted in the same Volume, it is not a problem, because a move is an operation of directory and the directories themselves are not encrypted (only the files that are there).  Whenever you move an encrypted volume to another file, the file must be decrypted, transferred to the other volume, then re-encrypted to destination.  Thus, the destination volume must be a NTFS file system to keep encrypted files.  If the destination is not a NTFS volume, then the copy would result in a file that is not encrypted at the destination and you will be prompted as to whether or not to allow the operation.  In all cases, a copy of volume-volume requires decryption of the file and any operation that requires a decryption error of access for you - more your inability to open a file normally indicates that you no longer control the certificate to decrypt the file.

    Backups are another matter.  If you are using Microsoft Backup utility (NTbackup), so he recognizes the encrypted file attribute and it backs up as - is without decoding.  Other 3rd third-party backup programs may not recognize the encrypted files and simply read and write to the backup media.  When this happens, the files are automatically decrypted to read (assuming the user certificates requires archiving) and writings of backup to a file unencrypted.  This would explain why you can retrieve an archive and it is not encrypted.  DVD and optical bands do not use NTFS, so a decryption of the original file is required to save in these environments.

    The private part of your (needed for decryption of files) EFS encryption certificate itself is stored encrypted on your computer.  To decrypt, Windows uses your SecureID, password, and other things of which I'm unaware.  If your password is not reset in the normal way (i.e. by entering your current password and your new password) such as an administrator, then your certificate is not re-encrypted to your new password and your access lose him and with him, access to your EFS files.  Other forms of corruption can cause you to lose your certificate, but it seems that at some point you have lost access to your certificate and therefore cannot access files that have been encrypted under this certificate.

    New files that you write in a directory that has been activated with EFS will notice that you have a valid certificate and then automatically generate a new certificate that will be used to encrypt files from right now.  That's why the new files that you add to this directory appear to work well.  The only real mystery what I can't explain is the reason why a system restore to a time where it wasn't a problem does not allow you to restore access.

    If you want some heavy reading, try this:

    "Encrypting file system in Windows XP and Windows Server 2003"
      <> >

    Personally, I'm not fan of the EFS because of problems like this.  I prefer the freewareTruecrypt which is just as safe, but I myself manage keys (in the form of password) instead of Windows.  Also, it hides the names of files and can be used safely on a connection in network and backup from windows volume is encrypted little matter how they are done.  I have not lost all data encrypted in more than a decade.


  • Trouble opening any folder by using the double-click method

    Whenever I try to open a folder by double clicking it opens a file of "search results". But if I choose a right-click "open" each folder opens ok. Why is it you?

    See if this helps:

    'Search Companion starts if you double-click a folder '.
      <> >


  • How to add files using the back command watcher utility

    Hi all

    I want to create a task in windows Xp professional version 2002 service Pack3 whenever a user to make a new backup in the backup folder, it must automatically remotely copied using ftp.
    Thank you

    Hi Anand,

    The question you posted would be better suited in the Technet Forums. I suggest you send the query in the link below.

    Hope this information helps you.

Maybe you are looking for