Computing.Net > Forums > Programming > VB Script needed to Copy files

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 needed to Copy files

Reply to Message Icon

Name: vinayag
Date: December 13, 2006 at 03:31:15 Pacific
OS: Windows XP
CPU/Ram: 512 MB
Product: Intel
Comment:

Hi,I need a VB Script to copy a set of files from one location to another.
Please help me.

Regards,
Vinayaga.



Sponsored Link
Ads by Google

Response Number 1
Name: MrBedo
Date: December 13, 2006 at 04:08:35 Pacific
Reply:

At it's simplest:

Dim FSO

Set FSO = CreateObject("Scripting.FileSystemObject")

FSO.CopyFile "\\file to be copied path", "\\destination directory"


But your best bet would be to simply Google your question, there's a mountain of help and examples out there.


0

Response Number 2
Name: tonysathre
Date: December 13, 2006 at 04:31:17 Pacific
Reply:

Does it have to be a VBScript?

@echo off
net use t: \\computername\sharename
xcopy /y /e c:\folder t:> nul
echo copy complete
net use t: \\computername\sharename /delete
pause

"Computer security." — Oxymoron


0

Response Number 3
Name: nem0
Date: December 13, 2006 at 13:08:40 Pacific
Reply:

You can write a batch file.

@echo on
xcopy /d /y "xxxxxxxxxx" "yyyyyyy"

x= path for the file(s)
y= path for the destination

Hope that helps.


0

Response Number 4
Name: nem0
Date: December 13, 2006 at 13:09:24 Pacific
Reply:

Opps, it's

@echo off

and not on... my bad.


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 needed to Copy files

script to copy files from a server www.computing.net/answers/programming/script-to-copy-files-from-a-server-/16825.html

Need to move files i cannot see www.computing.net/answers/programming/need-to-move-files-i-cannot-see/12852.html

VB Script Compare two Text files for Duplicat www.computing.net/answers/programming/vb-script-compare-two-text-files-for-duplicat/20247.html