If there are multiple files in a document which a user would like to change the extension of, the individual can use a batch command, which will change the extension of all similar files to the desired extension. For example, if one wants to change files with an extension of .avi to .bmp, one would need to give two arguments with the 'from' extension and the 'to' extension. If the file name is test.bat, the command should look something like this: test *.avi *.bmp. This command will change all the .avi extension files to .bmp extension files. Alternatively, download biterscripting from biterscripting.com to change file extensions.
All dir, file name, pattern are examples, use your own.
You can call this script on any pattern you describe. Or, you can create a master script to repetitively call this script for each pattern. You can do this in batch mode by calling biterscripting
from another program or DOS.
stex=string extractor, chex=character extracter, chin=character inserter, -p=preserve original string, ]=upto and including, etc. Do a help on commands to get the details. These are rather powerful editor commands.
# START OF SCRIPT
# Declare input arguments.
var str dir pattern
# Collect a list of files matching the pattern.
var str list
find -f $pattern $dir >$list
# The list of files is in $list. Process one at a time.
while ($list <> "")
# Get the next file.
var str file, path, old_name, new_name
lex "1" $list > $file
# Remove path. This will give us just the file name in $old_name.
stex -p "^/^l[" $file > $old_name # After (but excluding) the last /
# Drop the first 7 characters.
chex -p "7]" $old_name > $new_name
# Insert MSG_IN_ after 14 characters.
chin "14" "MSG_IN_" $new_name > null # We are using > null because we dont want to see the output
# We want to insert MSG_IN_ into $new_name (thus no -p option).
script SS_SlashBack.txt ospath($file) >$file
# Rename $file to $new_name
system rename $file $new_name
# END OF SCRIPT