This may help in order to get the short path name: http://www.news2news.com/vfp/?function=83
However, I doubt you'll need that - I just checked (Windows 7 here - didn't test on any other OS, but I expect this would work on Windows95 too). Dir C:\ > "C:\Test\Space Space\file.txt" Worked as expected as long the full path to the file is enclosed in quotes. > -----Original Message----- > From: [email protected] [mailto:profoxtech- > [email protected]] On Behalf Of Tracy Pearson > Sent: Wednesday, February 23, 2011 5:17 PM > To: [email protected] > Subject: RE: Getting a complete file list from a removable disc into VFP > > Joe Yoder wrote on 2011-02-22: > > Tracy, > > > > Thanks for the followup on the pegged processor potential. Your > > conclusions line up with what I was thinking but I didn't have the > > details on your code. > > > > I solved the "cmd /c" puzzle by doing "cmd /?" at the command line. > > The "/c" parameter means execute the command that follows an > terminate. > > > > In my experience, the example of a redirect to a long filename that > > you give, '> "C:\Temp\Space in Folder\dir.txt"])' will not work. The > > string would need to be '> "C:\Temp\Spacei~1\dir.txt"])' unless there > > is another folder using the Spacei~1 in which case it might beSpacei~2 etc. > > > > Thanks again for your help, > > > > Joe > > > > Joe, > > Using the code Grig posted, unmodified, I passed that command in and the > file was created in the given folder. > > Anyway, ADIR() has an option to give the 8.3 filename of long filenames. I > don't know of any direct fullpath to the 8.3 format function. > > Tracy Pearson > PowerChurch Software > > > > [excessive quoting removed by server] _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/profox OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/[email protected] ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

