Jump to content

tiggerjr82

Member
  • Posts

    6
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    United Kingdom

About tiggerjr82

tiggerjr82's Achievements

0

Reputation

  1. Last question i promise :-) but now you have me on a roll! What if I now wanted to just replace the number 0000 with Arctic_White for example and keep the rest of the original filename the same? So if its bodykit_0000 or bed_0000 it would rename it to be bodykit_arctic_white or bed_arctic_white etc etc So to find the number and replace only the number in the string??
  2. Brilliant, that is exactly what i was looking for thanks so much!!
  3. Great thanks How about the other bit about checking for the number in the original file instead of me specifying the filename as fixed?
  4. Brilliant thanks :-) this was along the lines but I simplified it in the end and use the script from the desitnation folder instead. However, what if I now want to make it a bit more complicated? Lets say my original file name is Bed_0001 or could be table_0001 etc etc, it will always have the 4 digit number but the text in it could change depending on the file being saved. Now I would like my script to look at the original name and only see what the 4 digit number is to decide what to rename it So basically I figure I have to have the original name as a string and to search for the digits in it? How do you think I should do this? Any help greatly appreciated
  5. Sorry, new to the forum, after i posted in a reply i worked out how to post it as a new one. Thanks - gonna try now Ok... maybe a silly question but.. how does it know where to look for the file? I tell it where to rename a file, but when you look for the file existing dont I need to somehow tell it where to look?
  6. Hi all I have used this script but it doesnt work - any ideas? Dim FSO Set FSO = CreateObject("Scripting.FileSystemObject") If FSO = "bodykit0.txt" Then FSO.MoveFile "C:\Users\Lisa\desktop\bodykit0.txt", "C:\Users\Lisa\desktop\bodykitblack.txt" Endif If FSO = "bodykit1.txt" Then FSO.MoveFile "C:\Users\Lisa\desktop\bodykit1.txt", "C:\Users\Lisa\desktop\bodykitwhite.txt" Endif Set FSO = nothing I'm trying to look through a list of files and rename them based on their original name, there will be a number of files in the folder (it wont be my desktop ofc) and I want to rename them based on their number, so 0=black, 1=white etc etc... Any help GREATLY appreciated!!
×
×
  • Create New...