Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dir command
Message
From
12/03/2002 06:29:31
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
12/03/2002 03:57:08
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00631363
Message ID:
00631389
Views:
25
>>>how can I use the dir command avoiding the listing on the screen ?
>>>I have to save the dir output in a file so I use the dir command like this :
>>>Dir mypath To File filename
>>>but what i don't want to is to see the output even on the screen as i have to press a key to go on when the number of records exceed the screen place.
>>>I hope to have been clear enough
>>>Thank u all
>>
>>Alessio,
>>use ADIR(), copy the elements to the file.
>>
>>Agnes
>
>I cannot use the adir command as i get an out of memory error because the directory cotains more than 12000 files...
>thank u gary i remember there was a set instruction to use but i thought it was
>the set device

How about:
* Assuming a jpg extension
run dir *.jpg > filelist.txt
modify command filelist.txt
The > sign redirects the output of the DOS command, to the specified file instead of the screen.

HTH, Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform