Tuesday, May 27, 2014

Copying files using Xcopy,robocopy and wise copy through Wise Scripts

Xcopy Method:

item: Check Disk Space
end
item: Get Environment Variable
  Variable=SYSDRIVE
  Environment=SYSDRIVE
end


item: Execute Program
  Pathname=xcopy.exe
  Command Line=/E /y "%SYSDRIVE%\Files\agent\*.*" "%SYSDRIVE%\agent"
  Flags=00001010
end

RoboCopy Method

item: Check Disk Space
end
item: Get Environment Variable
  Variable=SYSDRIVE
  Environment=SYSDRIVE
end
item: Execute Program
  Pathname=%SYSDRIVE%\Files\Robocopy.exe
  Command Line="%SYSDRIVE%\Files\Oracle11g" "%SYSDRIVE%\temp\Oracle11g" *.* /MIR
  Flags=00001010
end

WiseCopy Method:

item: Check Disk Space
end
item: Get Environment Variable
  Variable=SYSDRIVE
  Environment=SYSDRIVE
end
item: Copy Local File
  Source=%SYSDRIVE%\firefox\*.*
  Destination=%SYSDRIVE%\firefox\
  Flags=0000000111100010
end

Note: Copy the highlighted content to notepad and change to .wse format and use it


No comments:

Post a Comment