/build/static/layout/Breadcrumb_cap_w.png

Scripting Question


VBS Script Help

04/16/2013 2358 views

hello all-

 

i have this batch file i created i would like to create a vbscript instead i am really not good at scripting the bach file just copy folder and file to network directory


REM ACH IAT AND SD FILES BACKUP

@echo off

 

rem *** copy files for backup ********

 

xcopy /e /y "c:\ach_down\A_1_pm\*.*" \\enet-nas\cushare\DATA\EFT Services\Atmshr\Ach_Down\ /S

xcopy /e /y "c:\ach_down\B_4_pm\*.*" \\enet-nas\cushare\DATA\EFT Services\Atmshr\Ach_Down\ /S

xcopy /e /y "c:\ach_down\C_10_pm\*.*" \\enet-nas\cushare\DATA\EFT Services\Atmshr\Ach_Down\ /S

xcopy /e /y "c:\ach_down\D_6_am\*.*" \\enet-nas\cushare\DATA\EFT Services\Atmshr\Ach_Down\ /S

xcopy /e /y "c:\ach_down\E_12_pm\*.*" \\enet-nas\cushare\DATA\EFT Services\Atmshr\Ach_Down\ /S

xcopy /e /y "c:\ach_down\IAT_1_PM\*.*" \\enet-nas\cushare\DATA\EFT Services\Atmshr\Ach_Down\ /S

xcopy /e /y "c:\ach_down\IAT_4_PM\*.*" \\enet-nas\cushare\DATA\EFT Services\Atmshr\Ach_Down\ /S

xcopy /e /y "c:\ach_down\IAT_6_AM\*.*" \\enet-nas\cushare\DATA\EFT Services\Atmshr\Ach_Down\ /S

xcopy /e /y "c:\ach_down\IAT_10_PM\*.*" \\enet-nas\cushare\DATA\EFT Services\Atmshr\Ach_Down\ /S

xcopy /e /y "c:\Micr\*.*" \\enet-nas\cushare\DATA\EFT Services\Micr\sdfile\ /S

echo copying files

echo copy operation complete

PAUSE

exit

 

anyhelp would be greatly appreciated.

 

thanks

0 Comments   [ + ] Show comments

Comments


All Answers

1

Google for 'vbscript copyfolder'

Answered 04/16/2013 by: VBScab
Red Belt

  • ;-)
  • This content is currently hidden from public view.
    Reason: Removed by member request For more information, visit our FAQ's.
  • Const OverwriteExisting = True

    Set FSO= CreateObject("Scripting.FileSystemObject")
    FSO.Copyfolder "\\sourcefolderpath\folder", "destinationpath\", OverwriteExisting
  • thanks areiner

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ