Long file names problem (AREV Specific)
At 06 JAN 2005 05:48:53PM John King wrote:
From an Arev program, I need to be able to rename a dos file to a file name that is over 8 characters in length in Windows XP. Actually I need to be able to OSOPEN to a long file name but I know this is not possible in Arev, so I am using pcperform to issue a REN command to rename the file after the file has been OSCLOSE'd. After the program has run and I look at the dos file, it has the long file name I chose but it has been truncated to 8 characters. If I go straight to a MS-DOS prompt window and issue the same command from the Arev dos directory, it works fine.As a last resort, I tried creating a batch file from within Arev to do the same REN command and then used execute to run the batch file. This resulted in the same truncated file name. Even though the batch file works fine outside of Arev.Does anyone know the reason this doesn't work correctly using pcperform "REN PROVS.TXT PROVIDERS.TXT" (for example) or using execute? Thanks for your help.
=== At 07 JAN 2005 03:25AM support@sprezzatura.com wrote: ===
Have you checked this thread
support@sprezzatura.com
The Sprezzatura Group Web Site
World Leaders in all things RevSoft
At 11 JAN 2005 07:46AM Hippo wrote:
Under WinXP you can invoke command.com (%commspec%) or cmd.exe (which is invoked when you "run DOS").
*.bat files are sometimes interpreted by former one (usual %comspec% calls), but doubleclick invokes the later interpret.
Formar one uses short names the later longnames.
I use
cmd.exe /c copy shortn.ame longfilename
in our bat files, but it must be preceeded by
if "%OS%"==Windows_NT"
…
not to confuse Win98 machines, where
copy shortn.ame longfilename
works well and cmd.exe does not exist.