We have been renaming files to long filenames via a batch file for some time with Windows 98. When we try this technique in Windows 2000, the program fails to recognize a long file name in the from name file, and will truncate a long filename to eight characters in the to name.
If you perform a SUSPEND from the TCL window and call the batch file, and then EXIT, the Batch file approach works fine.
If you use, for example: SUSPEND EXIT 'C:\RENAME.BAT', then the batch file does not work.
Any ideas?
Do a DIR within Arev with the show shortname switch set and then parse the list to get the shortname. Arev doesn't recognize long names.
I know this technique and use it often. The big problem is going the other way, ie creating a long filename to send to one of our clients.
It is easy enough to just rename the file with Windows Explorer before sending, but we prefer to have the entire process automated.
What is infuriating is that we could do this easily in Windows 98, and are unable to do it in Windows 2000.
Try SUSPEND EXIT CMD /C Copy ….
This will get you a 32bit command processor which should unerstane the fileames
Bob
Thank you! This works perfectly.
Thanks for that, it provided a solution for an 8.3 compromise that I was about to do.
Barry
You're welcome.
You can use the same trick to use the START command to launch excel or word documents, web pages, outlook, etc
suspend exit cmd /c start mybook.xls
suspend exit cmd /c start http://www.revelation.com
suspend exit cmd /c start mailto:[email protected]?subject=Arev
Bob
Well I'll be damned!!!. Obviously not reading the right books.
Where do I find the systax options for this:- mailto:[email protected]?subject=Arev
Cheers,
Bazza
Google mailto protocol
for instance here
The nice thing is that it opens the user's default mail client.
If you want to be Really clever you can use the cmd /c trick to spin long running reports to another Arev or OI instance. Use a batch file that starts another AREV with a specific user whose login looks into a JOBS table, picks up the next job, runs it, then logs off. Or, start http calls to S/Web or OECGI, your Arev Reports will run in a separate thread, open up in the user's browser.
Bob
Thank you very much!!!!
google cmd /c
If this of interest to anyone, I discovered that instead of .bat you can use .cmd to ensure the 32 bit CMD.EXE is used instead of dos COMMAND.EXE
or edit/create _DEFAULT.PIF to point to cmd.exe rather than command.com and put the pif in either the windows folder or system32 (I forget which).