RE: Getting a complete file list from a removable disc into VFP

Author: Tracy Pearson

Posted: 2011-02-23 at 10:17:08

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

_______________________________________________

Post Messages to: ProFox@leafe.com

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/000701cbd36c$bcf2ab60$36d80220$@com

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

©2011 Tracy Pearson