Copy & Rename to a Fixed location

I am trying to create a Copy & Rename button, but I keep getting syntax error. It should be something simple, but I can't get it.

I need to copy a selected file (say, test1.pdf) to a fixed location (Say, My Documents), and call this newly created file (Say, 123.pdf)

Copy To "C:\Documents and Settings\edw008\My Documents\123.pdf" doesn't work.

TO specifies the destination folder.

AS specifies the destination filename.

So this should do what you want:

Copy TO "C:\Documents and Settings\edw008\My Documents" AS "123.pdf"

Thank you for quick response. Your suggestion works.

I figured out what I was doing wrong (other than the path, filename issue you pointed out). I inserted commas in between the options (read that from the manual), that gives me syntax error.

I am not a programmer, and it would be nice if you can verify some syntax issues.

  • Options can only seperated by a single space, no commas ?
  • You can't put part of the option into 2nd line (look nice on sceen) ?

Again, thanks Nudel.

Yes to both of those.