Windows 7 Forums


Reply
Thread Tools

[SOLVED] Script (Batch File) Writing...

 
 
clifford_cooley clifford_cooley is online now
(c_c)
clifford_cooley's Avatar
Join Date: Mar 2009
Location: Arkansas, USA
Posts: 4,509
Thanked: 931
 
      06-27-2010
The txt file was all I needed.

Hope this helps
  • Zip file contains
    • One slightly modified txt file from the one you provided.
    • One CMD file that uses the modified file to rename every filename listed.
If you read the top few lines in the modified txt file you will see the pattern that I created. You can add or remove any file in the list to be renamed.

Simply click the Rename.cmd file to start the script. However if you don't understand what is written within the script, you should always ask someone else to look it over before you start the script. I'm simply suggesting scripts are dangerous and should never be run unless you know for sure exactly what the script will do.


Rename.zip

Last edited by clifford_cooley; 06-27-2010 at 11:02 PM..
 
Reply With Quote
 
 
 
 
Elmer BeFuddled Elmer BeFuddled is offline
Resident eejit
Elmer BeFuddled's Avatar
Join Date: Jun 2010
Location: Durham UK
Posts: 1,050
Thanked: 203
Send a message via Skype™ to Elmer BeFuddled
 
      06-27-2010
Quote:
Originally Posted by clifford_cooley View Post
The txt file was all I needed.

Hope this helps
  • Zip file contains
    • One slightly modified txt file from the one you provided.
    • One CMD file that uses the modified file to rename every filename listed.
If you read the top few lines in the modified txt file you will see the pattern that I created. You can add or remove any file in the list to be renamed.

Simply click the Rename.cmd file to start the script. However if you don't understand what is written within the script, you should always ask someone else to look it over before you start the script. I'm simply suggesting scripts are dangerous and should never be run unless you know for sure exactly what the script will do.
Now I am confused Clifford, I can't see a zip file!!
A) It's Sunday
B) I live next door but one to a pub where everybody is dieing after the (alleged) match. Moi, aussi!!
C) Still Sunday!!

DOH!!! Log in FIRST helps!!!

You saying I can't trust you (final paragraph)?
Actually wise words indeed. You know when you visit a site like (for example) askVG, and there is no defamation meant here, instead of downloading the "ready-made registry tweak" I'd rather type it in manually and export it for later use.

Because this is now a sort of a retro thing, i.e. I'd already re-named the files with a pre-fixed tilde, I went through the folders/files and randomly "un-renamed" them. Then hit your rename cmd. Worked a treat Pal, but then, you knew it would!!! THANKYOU, THANKYOU, THANKYOU.

Did I remember to say Thanks?????

Admin I don't seem to be able to mark this thread as solved. Is that because I'm in a "non-problem" solving side of the forum?? (Or is it because the beer's still working ??)

Last edited by Elmer BeFuddled; 06-27-2010 at 11:32 PM..
 
Reply With Quote
 
clifford_cooley clifford_cooley is online now
(c_c)
clifford_cooley's Avatar
Join Date: Mar 2009
Location: Arkansas, USA
Posts: 4,509
Thanked: 931
 
      06-27-2010
Quote:
Originally Posted by Elmer BeFuddled View Post
Now I am confused Clifford, I can't see a zip file!!
That would be my fault. It was 50 minutes later when I realized I had not uploaded the file yet.

Quote:
Originally Posted by Elmer BeFuddled View Post
Did I remember to say Thanks?????
You are very welcome. I happy that it works for you.

Quote:
Originally Posted by Elmer BeFuddled View Post
Admin I don't seem to be able to mark this thread as solved. Is that because I'm in a "non-problem" solving side of the forum?? (Or is it because the beer's still working ??)
That option does not work in the Off Topic section. I moved the thread and then flagged it solved.
 
Reply With Quote
 
Elmer BeFuddled Elmer BeFuddled is offline
Resident eejit
Elmer BeFuddled's Avatar
Join Date: Jun 2010
Location: Durham UK
Posts: 1,050
Thanked: 203
Send a message via Skype™ to Elmer BeFuddled
 
      06-27-2010
Thanks again Clifford
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Windows 7 CMD Help & Tips Fire cat Customization 16 04-18-2012 05:17 PM
Windows 7 Tip of the Week: Smarter File Copying Nibiru2012 General Discussion 9 10-14-2011 06:29 PM
Stand-Alone Software Every 7 System Should Have Available Elmer BeFuddled General Discussion 6 05-15-2011 06:52 AM
Running a batch file on shutdown win7 64 bit masplin General Discussion 0 03-21-2010 01:03 PM
Windows 7 install keeps rebooting Stephen47 Installation, Setup and Updates 32 05-24-2009 06:26 PM


All times are GMT +1. The time now is 07:06 AM.
W7Forums is an independent website and is not affiliated with Microsoft Corporation.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33