VBScripting (.vbs) Basic tutorial on how to copy, move, and rename files and folders. Use an asterisk to copy or move multiple files and folders at a time. Also how to make sure and check if they exist before doing so.
Code Example:
______________________________________________________
Option Explicit
Dim fso
Set fso = CreateObject("Scripting.FileSystemObject")
If fso.FileExists("C:\Users\Jeremy\Desktop\sinking.jpg") then
fso.CopyFile "C:\Users\Jeremy\Desktop\sinking.jpg"
آی-ویدئو