On Tue, Jun 3, 2014 at 7:13 AM, David McSpadden <[email protected]> wrote: > Copy file x to folder y. Where file x is passed as parm %1 and folder y as > parm %2. > 050114.7z is moved to folder May 2014. > So today 06/03/2014 the job would be looking at 04/19/2014.
I'm confused on your requirements. You're asking to pass the file and folder as arguments, but then mention looking at the file name to get the folder name. You also say it's dependent on the date the script would be run. Do you build the file name from the current date, or simply take it from the first argument? If you're building the file name, what's the point of the first argument? Or did you mean for the first argument to be the parent folder containing the file? Do you need to derive the folder name from the file name, or build the folder name from the current date, or simply take the folder name from the second argument? Or is the second argument the parent folder for the folder you're deriving/building? -- Ben -- Ben

