Computing.Net > Forums > Programming > VB script to copy folders

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

VB script to copy folders

Reply to Message Icon

Name: colestorm
Date: April 27, 2008 at 21:52:46 Pacific
OS: WIN
CPU/Ram: duo
Product: intel
Comment:

Hi,

Was wondering if i could use Logon Script (VBS) to copy a folder from a server to the users local profile (Document & Settings)???

Please advise
Thanks

Sup?



Sponsored Link
Ads by Google

Response Number 1
Name: Razor2.3
Date: April 28, 2008 at 02:34:13 Pacific
Reply:

Yes, I believe you could. Then again, it's been a long time since I dealt with logon scripts.

Or: Careful what you ask; you might just get it answered.


0

Response Number 2
Name: colestorm
Date: April 28, 2008 at 02:55:53 Pacific
Reply:

Could someone help me with it...
Search around for help, but could not find any...

Sup?


0

Response Number 3
Name: Razor2.3
Date: April 28, 2008 at 03:25:21 Pacific
Reply:

As I said, I haven't worked with logon scripts for a long time, so I'm not sure the script can get the user's directory this way.

With CreateObject("WScript.Shell").Environment("Process")
dest = .Item("UserProfile") & "\"
End With
With CreateObject("Scripting.FileSystemObject")
.CopyFolder "whatever", dest
End With


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: VB script to copy folders

.vbs script to rename folders www.computing.net/answers/programming/vbs-script-to-rename-folders/13102.html

VB Script needed to Copy files www.computing.net/answers/programming/vb-script-needed-to-copy-files/14942.html

VB script to put time and date on www.computing.net/answers/programming/vb-script-to-put-time-and-date-on/18241.html