forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


DIR *.* /S in VDS

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
Bart
Valued Newbie


Joined: 24 Jun 2003
Posts: 41
Location: Netherlands

PostPosted: Tue Feb 24, 2004 4:24 pm    Post subject: DIR *.* /S in VDS Reply with quote

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
View user's profile Send private message
SnarlingSheep
Professional Member
Professional Member


Joined: 13 Mar 2001
Posts: 759
Location: Michigan

PostPosted: Tue Feb 24, 2004 6:58 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Bart
Valued Newbie


Joined: 24 Jun 2003
Posts: 41
Location: Netherlands

PostPosted: Wed Feb 25, 2004 7:56 am    Post subject: Reply with quote

Thanks, this is doing the job for me.
Back to top
View user's profile Send private message
vtol
Valued Contributor
Valued Contributor


Joined: 05 Feb 2004
Posts: 656
Location: Eastern Indiana

PostPosted: Wed Feb 25, 2004 6:44 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
vdsalchemist
Admin Team


Joined: 23 Oct 2001
Posts: 1448
Location: Florida, USA

PostPosted: Wed Feb 25, 2004 11:16 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
vtol
Valued Contributor
Valued Contributor


Joined: 05 Feb 2004
Posts: 656
Location: Eastern Indiana

PostPosted: Thu Feb 26, 2004 12:11 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group