Sign up on the Revelation Software website to have access to the most current content, and to be able to ask questions and get answers from the Revelation community

At 15 DEC 2004 12:34:34PM Nick Severino wrote:

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?


At 15 DEC 2004 01:42PM Curt Putnam wrote:

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.


At 15 DEC 2004 02:19PM Nick Severino wrote:

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.


At 15 DEC 2004 02:45PM Bob Carten wrote:

Try SUSPEND EXIT CMD /C Copy ….

This will get you a 32bit command processor which should unerstane the fileames

Bob


At 15 DEC 2004 03:43PM Nick Severino wrote:

Thank you! This works perfectly.


At 15 DEC 2004 05:33PM Barry Stevens wrote:

Thanks for that, it provided a solution for an 8.3 compromise that I was about to do.

Barry


At 16 DEC 2004 02:17PM Bob Carten wrote:

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:info@revelation.com?subject=Arev


At 16 DEC 2004 09:08PM Barry Stevens wrote:

Bob

Well I'll be damned!!!. Obviously not reading the right books.

Where do I find the systax options for this:- mailto:info@revelation.com?subject=Arev

Cheers,

Bazza


At 20 DEC 2004 10:34AM Bob Carten wrote:

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


At 20 DEC 2004 05:28PM Barry Stevens wrote:

Thank you very much!!!!


At 20 DEC 2004 05:36PM Barry Stevens wrote:

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


At 21 DEC 2004 09:06PM Warren Auyong wrote:

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).

View this thread on the forum...

  • third_party_content/community/commentary/forums_nonworks/f6ffc6240108e68885256f6b00608cbe.txt
  • Last modified: 2023/12/28 07:40
  • by 127.0.0.1