Visual Basic Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreVisual Basic Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old November 18th, 2003, 05:00 PM
DaleSwanson DaleSwanson is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Posts: 1 DaleSwanson User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Using VBscript To Copy A Folder From The Web To Harddrive

Ok, I'm new at vbscript so forgive me if this is stupid. I want to copy a folder including the subfolders, from my webserver to the person viewing the .hta's harddrive. Let's say my site is URL and that the folder is URL and it contains a text file called text.txt and a folder called files. That folder has three .cfg files in it, names one, two, and three.

What I've been trying to do is:

Code:
dim filesys
set filesys=CreateObject("Scripting.FileSystemObject")
If filesys.FolderExists("http://www.site.com/test") Then
 filesys.CopyFolder "http://www.site.com/test", "c:\destfolder\"
End If


I took that from some site about vbscripts, it works if the source file is on my harddrive, but not if it is on the internet. So how would I do this? It has to be possible to move files from the web to harddrive using vbscript, but I'm guessing you cant use copyfolder to do it.

If you don't understand me then maybe you can just tell me how to do the following. If I had a file called pic.jpg at URL how would I move that onto someone's harddrive to C:/folder/ usint VBscript?

Reply With Quote
  #2  
Old November 18th, 2003, 11:47 PM
cleverpig cleverpig is offline
Contributing User
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jul 2003
Posts: 1,152 cleverpig User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Send a message via MSN to cleverpig
I recommend u to use asp & vbscritp language for it!..If u will download the folder and files to client's harddisk automatically,It's difficult to implement.Because u must have a administrator potency to write client's harddisk!!But u can redirect the url to download the file on the web server for client.
It's a sample about how to download file to client:
http://www.aspemporium.com/aspEmpor...bs_download.asp

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreVisual Basic Programming > Using VBscript To Copy A Folder From The Web To Harddrive


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 6 hosted by Hostway
Stay green...Green IT