January 31, 200619 yr How can I automate the process of changing the filename after the fact. For example, if the filename is "Data" I'd like to rename it to "01312006_Data" where the numerals represent the date. Thanks.
February 1, 200619 yr If you know the full path to the original file then you can use Send Event and the command line to rename the file: Calculate this string: cmd /c ren c:folderdata.txt c:01312006_data.txt
February 2, 200619 yr Author If you know the full path to the original file then you can use Send Event and the command line to rename the file: Calculate this string: cmd /c ren c:folderdata.txt c:01312006_data.txt It seems to work only for the local drive cmd /c ren c:folderdata.txt 01312006_data.txt but doesn't work on a network drive. cmd /c ren x:mypathfolderdata.txt 01312006_data.txt What am I doing wrong?
February 3, 200619 yr I'm assuming the "x" drive is properly mapped? Otherwise you can use the UNC syntax of the share: servershareName Also check the privileges on the shared folder. You may not have the necessary rights.
February 6, 200619 yr Author I checked the rights and I do have the necessary rights. However, I tried to look at the error message and it says "The syntax of the command is incorrect" cmd /k ren filesvrdeptmyPathFolderData.txt 01312006_Data.txt
February 7, 200619 yr Any spaces in the path? If so you need to make sure there are quotes around it.
February 7, 200619 yr Author Any spaces in the path? If so you need to make sure there are quotes around it. You are absolutely correct. Did the above as per your instructions and like magic, it worked. Thank you greatly.
Create an account or sign in to comment