Related:
- Renaming a file
- Windows 10 iso file download 64-bit - Download - Windows
- Kmspico zip file download - Download - Other
- Tiny 11 iso file download - Download - Windows
- Dvi file - Guide
- Messenger file downloader - Guide
2 responses
SenHu
Posts
15
Registration date
Friday May 22, 2009
Status
Member
Last seen
February 2, 2010
14
Jun 17, 2009 at 10:57 AM
Jun 17, 2009 at 10:57 AM
Hello tk:
Rather simple. You can do it with biterscripting ( http://www.biterscripting.com ) . Here is the small script to rename version.txt. (I have added comments so you can edit the script if necessary.)
Email me if you need more help. Don't forget to mark this thread as resolved if you find this answer useful.
Sen
Rather simple. You can do it with biterscripting ( http://www.biterscripting.com ) . Here is the small script to rename version.txt. (I have added comments so you can edit the script if necessary.)
# Go to directory where version.txt is stored. ccd "some directory" # Enter correct folder path here. # Read version.txt into a variable. var str content ; cat "version.txt" > $content # Remove everything upto "GCA.atmID = ". stex "^GCA.atmID = ^]" $content > null # The next 8 characters are the new file name. var str newname ; chex "8]" $content > $newname # Rename file to $newname.txt. system rename "version.txt" ($newname+".txt")
Email me if you need more help. Don't forget to mark this thread as resolved if you find this answer useful.
Sen
When using the following commands in biterscripting, they need to be preceeded by system.
copy
rename
move
delete
For example:
The above will copy file X.txt to Y.txt.
The above will delete file X.txt.
etc.
Also, it is always best to use double quotes around file names and paths with the system command.
Sen
copy
rename
move
delete
For example:
system copy "X.txt" "Y.txt"
The above will copy file X.txt to Y.txt.
system delete "X.txt"
The above will delete file X.txt.
etc.
Also, it is always best to use double quotes around file names and paths with the system command.
Sen
Jun 26, 2009 at 10:07 AM
now I have a file name that I need to make a part of the text file. I have 255 text files with information that is formatted similarly. The text file has information related to a unit. The unit id is the file name. I would like to be able to take the file name and make it the first line of the text file. thanks in advance for your assistance!