Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
XP Batch Files - Renaming
Name: gabson Date: October 29, 2006 at 16:16:42 Pacific OS: XP Pro SP2 CPU/Ram: Intel P4 2.4 GHZ 512MB
Comment:
I am trying to write a batch file that will rename a series of files within a folder. I need it to remove the first 8 characters, then add its own prefix and suffix. I don't have much experience with writing complex batch files, but here is what I've got and all it does is rename it to "prefixsuffix" with no extension. Can anyone help me out? Am I on the right track or is this even possible with this method?
for %%R in (*.*) do ( SET NAME=%%R:~8,-4% SET EXT=%%R:~-4% REN %%R prefix%NAME%suffix%EXT% )
Summary: Is there anyway to do a batch file rename function to remove the first three characters of the file name? The files have two numbers followed by Alt+0149 Example: 02•filename.seq I'd like them to j...
Summary: Hi I wonder if someone can help. I use a batch file to process some files at work. problem is the batch file has to use fixed file names. Is there a way to save the original file name, rename to the f...