Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Calling all FoxPerts!! Can capture !NDIR reply from desk
Message
From
15/03/1999 18:48:16
 
 
To
15/03/1999 18:32:17
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00197830
Message ID:
00197834
Views:
16
>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.

Why not use ADIR()? Pull the file details into an array, which you could then put into a table if you like. Or look at the Windows Scripting Host Scripting.FileSystemObject or Shell.Application's NameSpace method, both of which will return Folder objects that can be traversed.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform