Re: [PCWorks] How to create a batch file to rename a file, then rename it back?

  • From: Hugh Vandervoort <hughv2@xxxxxxxxxxx>
  • To: pcworks@xxxxxxxxxxxxx
  • Date: Tue, 22 Jul 2008 16:24:30 -0400

Basically:
Use Notepad.

ren file.txt file.doc

Save this as "rename.bat"

ren file.doc file.txt

Save this as "rerename.bat"


These will execute by clicking.
Tell us more about what you're trying to do to get more options.



Karl Springer wrote:
> On 22 Jul 2008 at 9:35 -0500, Clint Hamilton-PCWorks Admin 
> wrote, at least in part:  
> 
>> Can anyone please tell me how to make a batch file to rename
>> a file, then another one to rename it back to the original
>> name? 
> 
> Lots of expertise at  
> <http://groups.yahoo.com/group/batchworld/>.
> 
> Karl
=========================
The list's FAQ's can be seen by sending an email to 
PCWorks-request@xxxxxxxxxxxxx with FAQ in the subject line.

To unsubscribe, subscribe, set Digest or Vacation to on or off, go to 
//www.freelists.org/list/pcworks .  You can also send an email to 
PCWorks-request@xxxxxxxxxxxxx with Unsubscribe in the subject line.  Your 
member list settings can be found at 
//www.freelists.org/cgi-bin/lsg2.cgi/l=pcworks .  Once logged in, you have 
access to numerous other email options.  

The list archives are located at //www.freelists.org/archives/pcworks/ .  
All email posted to the list will be placed there in the event anyone needs to 
look for previous posts.
-zxdjhu-

Other related posts: