ASP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingASP Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old July 28th, 2003, 02:06 AM
sumicooldude sumicooldude is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Posts: 48 sumicooldude User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
Send a message via Yahoo to sumicooldude
Question Folder Managment

Dear All,

i want to create an auto-backup ASP page to backup the contents of any folder, but the problem is i cannot find any script that helps to copy a folder from one location to another, only i can find is the file copyin methods. please help me if nebody has the solution or guidance.

thnx in advance

regards
Sumeet
__________________
the coolest one

Reply With Quote
  #2  
Old July 28th, 2003, 06:05 AM
EiSa EiSa is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Sep 2002
Location: Norway
Posts: 184 EiSa User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 22 m 24 sec
Reputation Power: 7
Here you find information about how to copy a folder ++

http://www.w3schools.com/asp/met_copy.asp

Reply With Quote
  #3  
Old July 29th, 2003, 12:15 AM
sumicooldude sumicooldude is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Posts: 48 sumicooldude User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
Send a message via Yahoo to sumicooldude
Dear EiSa

it did worked, but my actual problem is that i want to copy the same virtual directory which is also the running application to any other computer on my network, like:

dim fs,fo
set fs=Server.CreateObject("Scripting.FileSystemObject")
set fo=fs.GetFolder ("http://domain-server/application")
fo.Copy "\\computer-1\c\",true
set fo=nothing
set fs=nothing

when i run the script like this the error shows up which says that path not found, i also mapped the drive c of computer-1 but still no use.

sorry for not clearifing earlier, plz help me

regards
Sumeet

Reply With Quote
  #4  
Old August 2nd, 2003, 02:00 PM
rdoekes rdoekes is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2002
Location: Strasbourg, France
Posts: 181 rdoekes User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 m 20 sec
Reputation Power: 7
Send a message via AIM to rdoekes Send a message via Yahoo to rdoekes
Server.MapPath

Hi,

You could try to use the Server.MapPath to get the physical path of your application.

PHP Code:
 Set oFSO Server.CreateObject("Scripting.FileSystemObject")
Set oFolder oFSO.GetFolder Server.MapPath("/application/")
etc... 
__________________
- Rogier Doekes

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingASP Development > Folder Managment


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway
Stay green...Green IT