Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Function to copy files&folders recursively by using WMI Copy

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,64978
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Function to copy files&folders recursively by using WMI Copy
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 Function to copy files&folders recursively by using WMI... - 10/10/2008 9:09:49 PM   
  geezery

 

Posts: 23
Score: 0
Joined: 5/28/2007
Status: offline
I'm starting to write a quite complex script and asp.net interface for an enterprice class backup solution for workstations.

Does anyone have a working function that copies files & folders from source folder to destination folder by using the WMI copy (CIM_DATAFILE) etc.. I already have an WMI function that copies all the files recursively, but I have big troubles getting the folder structure staying same in the source folder and destination folder.

I don't want to use FSO, since I'm going to build an asp.net user interface for users, so they could maintain their backup settings from there.
 
 
Post #: 1
 
 RE: Function to copy files&folders recursively by using... - 10/13/2008 4:25:59 AM   
  dm_4ever


Posts: 2641
Score: 46
Joined: 6/29/2006
From: Orange County, California
Status: offline
Using WMI for FS tasks is not something I personally like, but if you show us this WMI function maybe there's a way to have it maintain the structure as well.

_____________________________

dm_4ever

My philosophy: K.I.S.S - Keep It Simple Stupid
Read Me: http://www.visualbasicscript.com/m_24727/tm.htm
Frequently Asked Stuff: http://www.visualbasicscript.com/m_47117/tm.htm

(in reply to geezery)
 
 
Post #: 2
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Function to copy files&folders recursively by using WMI Copy Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts