| View previous topic :: View next topic |
| Author |
Message |
Bart Valued Newbie
Joined: 24 Jun 2003 Posts: 41 Location: Netherlands
|
Posted: Tue Feb 24, 2004 4:24 pm Post subject: DIR *.* /S in VDS |
|
|
Hi,
Does anyone know there is a way op doing DIR *.* /S from DOS in VDS?
So that you get all the specified files that are in a directory incl subdirs |
|
| Back to top |
|
 |
SnarlingSheep Professional Member


Joined: 13 Mar 2001 Posts: 759 Location: Michigan
|
Posted: Tue Feb 24, 2004 6:58 pm Post subject: |
|
|
Care of Mac:
| Code: |
LIST CREATE, 1
DIRECTORY CHANGE, c:\
RUNZ command /c dir/s /B *.* > c:\zzzzfile.dat, WAIT
LIST LOADFILE, 1, zzzzfile.dat
FILE DELETE, zzzzfile.dat
|
_________________ -Sheep
My pockets hurt... |
|
| Back to top |
|
 |
Bart Valued Newbie
Joined: 24 Jun 2003 Posts: 41 Location: Netherlands
|
Posted: Wed Feb 25, 2004 7:56 am Post subject: |
|
|
| Thanks, this is doing the job for me. |
|
| Back to top |
|
 |
vtol Valued Contributor


Joined: 05 Feb 2004 Posts: 656 Location: Eastern Indiana
|
Posted: Wed Feb 25, 2004 6:44 pm Post subject: |
|
|
You prolly allready knew XP and VDS Pipe way...
| Code: |
%%filepath = c:\zzzzfile.dat
%%winXP_command = cmd
RUNH %%winXP_command /c DIR %%filepath /s,PIPE
%%pipe = @PIPE()
LIST append,1,%%pipe
|
|
|
| Back to top |
|
 |
vdsalchemist Admin Team

Joined: 23 Oct 2001 Posts: 1448 Location: Florida, USA
|
Posted: Wed Feb 25, 2004 11:16 pm Post subject: |
|
|
I tried using the Pipe today for this and I don't think the buffer is big enough to hold that much information. Anyway I got mixed results from the use of PIPE. Also for large harddrives this method is very slow with or without PIPE. I would suggest using the Win32 API but I don't have time to write an example right now. Maybe one of the other API knowledgable people could write something for ya that would give you the same results just a bit faster. (ie...FindFirstFile, FindNextFile, and FindClose). _________________ Home of
Give VDS a new purpose!
 |
|
| Back to top |
|
 |
vtol Valued Contributor


Joined: 05 Feb 2004 Posts: 656 Location: Eastern Indiana
|
Posted: Thu Feb 26, 2004 12:11 am Post subject: |
|
|
| That would be great, because I been wanting a zippier way. I forgot to mention the Pipe just great for doing individual folders (smaller jobs). |
|
| Back to top |
|
 |
|