WatchDirectory Forum
http://www.watchdirectory.net/cgi-bin/yabb25/YaBB.pl
watchDirectory forums >> How to... >> Add a file extension to filename
http://www.watchdirectory.net/cgi-bin/yabb25/YaBB.pl?num=1418656556

Message started by adi white on Dec 15th, 2014 at 4:15pm

Title: Add a file extension to filename
Post by adi white on Dec 15th, 2014 at 4:15pm
Hello im trying to add a file extension to some file names. id like to be able to drop files into a folder marked "in" and pick them out of a folder marked "out" with a .qxd file extension added. is this possible?

Title: Re: Add a file extension to filename
Post by Gert on Dec 16th, 2014 at 1:23pm
That should be quite easy.

Use the "Copy Files" task ( http://www.watchdirectory.net/wdhelp/plugins/wdopAutoCopy.html ) and enable the "dynamic naming" option. Set the target directory to something like
C:\Out\{filename}.qxd
or
C:\Out\{filetitle}.qxd

The first version adds .qxd to the name (file.txt -> file.txt.qxd) while the second version replaces the current extension.

WatchDirectory Forum » Powered by YaBB 2.5.2!
YaBB Forum Software © 2000-2017. All Rights Reserved.