RE: long filenames under ex.exx
- Posted by Al Gonzalez <alg at nomscon.com> Feb 23, 2002
- 449 views
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