Auto-Rename a file
06-Jan-89 09:05:06
Sb: #29107-Auto-Rename a file
Fm: Art Steinmetz 76044,3204
To: Phil Koenig 73027,2354
Yes, Khalid's utility is an ideal solution.
Yes XICON, IXECUTE, and a couple others all do the same thing. Just make
sure it is in your C; directory. Then create a batch file with your editor,
save it with an icon and use the INFO option from workbench to view the info
for that file. Make the default tool c:XICON (or whatever). Now you can
click on the file and it will run as a batch file using XICON.
There is one "gotcha." I find some/mV+_On?(Wm66 no@run through
XICON. The workaround is simple. Use the iconified batch file to open a
CLI, run another batch file and close again. Suppose the file that XICON
runs, say "StartTerm," contains the line:
NEWCLI FROM s:StartMyTermProg
If StartMyTermProg has the lines:
KhalidRename CISCAP.TXT
Access!
endcli
When you double click "StartTerm" a CLI will open up and run
"StartMyTermProg" in it. It will rename your file, start Access and the cli
will close when you quit Access. The CLI will hang around until Access is
done so you might want to make it smaller. Change StartTerm to
NEWCLI con:50\50\50\50\TermCLI FROM s:StartMyProg
— Art