AkiraKenshin
Programmer
I wrote a simple batch file to read off file path and names from a textfile so that it can be retrieved from the VSS online database we set up. However, as we all know, SS.exe does not place files you "get" to the working folder, but rather the folder that you invoke ss.exe get (file) from, and it doesn't even create folders/subfolders so running it from the working folder won't work too well either.
Since the filenames in the textfile are from different projects, I can't simply use a loop to move them to the correct folder unless I used windows script to truncate strings and compare etc. etc. I want to keep this simple in the batch file so is there a way to do this? At least moving them to a separate folder is a start.
eg:
files.txt contains
$/app/can.cls
$/computer/system.inf
therefore looping
for every item in list, move item to folder
does not work, since 'item' is not just the filename, but the pathway as well on the DATABASE (can't move from online database to local folder)
I was deliberating hard coding folder names and then creating a textfile for each individual, and a textfilewith each folder name so i could make use of a nested loop. This requires much more work on behalf of the person updating the list of files to be retrieved automatically. However it IS a solution. I wonder if any of you can share a better one.
Since the filenames in the textfile are from different projects, I can't simply use a loop to move them to the correct folder unless I used windows script to truncate strings and compare etc. etc. I want to keep this simple in the batch file so is there a way to do this? At least moving them to a separate folder is a start.
eg:
files.txt contains
$/app/can.cls
$/computer/system.inf
therefore looping
for every item in list, move item to folder
does not work, since 'item' is not just the filename, but the pathway as well on the DATABASE (can't move from online database to local folder)
I was deliberating hard coding folder names and then creating a textfile for each individual, and a textfilewith each folder name so i could make use of a nested loop. This requires much more work on behalf of the person updating the list of files to be retrieved automatically. However it IS a solution. I wonder if any of you can share a better one.