Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Calling all FoxPerts!! Can capture !NDIR reply from desk
Message
 
To
15/03/1999 18:32:17
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00197830
Message ID:
00198044
Views:
50
>When I type !NDIR /SORT [some sortspec] in command window I can get response on FoxPro desktop ( as with most any DOS/NetWare commands) I am trying to get files in a directory that have not been accessed for more than 1 year. I can get the output on the screen but I need to redirect this output to a text file (and eventually a table) some my prg will use this list for archiving. I tried (probably not correctly) to accomplish this with SET DEVICE to file, SET ALTERNATE to file, SET PRINT ON with no luck.

I am doing exactly what you suggest - as a matter of fact, the code redirects the NDIR to a text file, and then opens and analyzes the file. It places the files I'm interested in into a table, and deletes those that were not touched for more than 90 days.

I have the code at work - give me a hint about which parts you'd like to know about.
Kogo Michael Hogan

"Pinky, are you pondering what I'm pondering?"
I think so Brain, but "Snowball for Windows"?

Ideate Web Site
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform