; Script to duplicate a file with current date dateString := A_YYYY . "-" . A_MM . "-" . A_DD Loop %0% ; For each parameter (or file dropped onto a script): { SourcePath := %A_Index% ; Fetch the contents of the variable whose name is contained in A_Index. SplitPath, SourcePath, OutFileName, OutDir, OutExtension, OutNameNoExt, OutDrive DestinationPath := OutDir . "\" . OutNameNoExt . "_" . dateString . "." . OutExtension FileCopy, %SourcePath%, %DestinationPath%, 1 }