I want to move a file and define the path based on what it is saved as. The file name always has six numbers then a space. I want to determine the drive it goes into based on the second number(either 0 for R:\ or 1 for Y:\), and then the first folder in the drive is the first three numbers of the file name followed by three x's, then the folder within that is the exact six numers. then i want to make a new folder videos (if one doesnt exsist yet) and place the original folder into there.
For example the file 904425 is in the C:\ drive so because it is a 0 as opposed to a 1 for the second digit it goes into the Y:\ drive, then into the folder 904xxx then into the folder 904425, then into the Videos folder.
Would it be best to create three variables by truncating the folder name and if so how would i get the folder name into something that i can then append to the file path.
Thanks
Billy