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

Please log in to comment

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
Please log in to comment
Answer this question or Comment on this question for clarity
Admin Script Editor
Admin Script Editor is an integrated scripting environment available free here at ITNinja

Share