Page 1 of 1

Help With Simple Script

Posted: 29 Apr 2017 22:52
by DB06
Anyone could tell me how to make script that:

1. Duplicates specific file, and puts it into specific folder (Like User Defined Action - New, but i want to use it from external program)
2. Opens that file

Thanks!

Re: Help With Simple Script

Posted: 29 Apr 2017 23:37
by highend
Something like this?

Code: Select all

    $specificFile = "R:\new file.txt";
    $targetFolder = "T:\targetfolder";
    $newFile = new("$targetFolder\<srcname>", , $specificFile);
    open $newFile;

Re: Help With Simple Script

Posted: 30 Apr 2017 00:04
by DB06
Thanks for help! Runs perfect. :D