RE: long filenames under ex.err
- Posted by Elliott Sales de Andrade <quantum_analyst at hotmail.com> Feb 23, 2002
- 398 views
>-----Original Message----- >From: Al Gonzalez [mailto:alg at nomscon.com] >Sent: February 23, 2002 1:08 PM >To: EUforum >Subject: RE: long filenames under ex.exx >Mike Nelson wrote: >> >> The problem is that cd is a DOS command and DOS uses the space to >> separate >> command line parameters, so the cd C:\Program Files is interperted by >> DOS as >> "change directory to C:\Program, what the hell is that Files parameter >> for?" >> >> The Solution is to get DOS to see "C:\Program Files" as DOS does not >> interpret a space in a quoted string as a parameter separator and will >> interpret as "Change directory to C:\Program Files, no problem." >> >> The correct Euphoria code is >> >> system("cd \"c:\\program files\"", 2) -- the \" includes a literal " >> in >> the string >> >> By the way, it does no harm to enclose a file or folder name in quotes >> if it >> has no spaces, so this solution will also work for variable file/folder >> names. >> >> -- MIke Nelson >> >Thanks Mike, but if you'll notice in my original post, I already tried >that with the following results: >> > system("cd \"c:\\program files\"", 2) results in >> > Parameter format not correct - "c:\program >I get the same result under Windows 2000 and XP >Al Yes, Microsoft seems to have 'forgotten' long filename support in DOS under Win2k and XP. So you'll have to use 8.3 format names.