Help With Simple Script

Discuss and share scripts and script files...
Post Reply
DB06
Posts: 13
Joined: 08 Aug 2015 15:42

Help With Simple Script

Post 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!

highend
Posts: 13308
Joined: 06 Feb 2011 00:33

Re: Help With Simple Script

Post by highend »

Something like this?

Code: Select all

    $specificFile = "R:\new file.txt";
    $targetFolder = "T:\targetfolder";
    $newFile = new("$targetFolder\<srcname>", , $specificFile);
    open $newFile;
One of my scripts helped you out? Please donate via Paypal

DB06
Posts: 13
Joined: 08 Aug 2015 15:42

Re: Help With Simple Script

Post by DB06 »

Thanks for help! Runs perfect. :D

Post Reply