WatchDirectory Forum
http://www.watchdirectory.net/cgi-bin/yabb25/YaBB.pl
watchDirectory forums >> Plugins >> Rename file > ouput old name + new name csv file
http://www.watchdirectory.net/cgi-bin/yabb25/YaBB.pl?num=1375799405

Message started by KeithS on Aug 6th, 2013 at 4:30pm

Title: Rename file > ouput old name + new name csv file
Post by KeithS on Aug 6th, 2013 at 4:30pm
I need to rename many files and capture the old name and new name in a csv file. The rename plugin does not capture the output, how would I get this done?

Title: Re: Rename file > ouput old name + new name csv fi
Post by Dirk on Aug 6th, 2013 at 4:43pm
You can use something like that with the "run any batch file" plugin (not tested):

[code]
echo old name: >>c:\temp\names.txt
echo "%WD_FILE_N%>>c:\temp\names.txt
echo.
ren "%WD_FILE%" "newname"
echo new name: >>c:\temp\names.txt
echo "%WD_FILE_N%>>c:\temp\names.txt
echo.
[/code]

see here for all variables you can use:
http://www.watchdirectory.net/wdhelp/plugins/wdopAutoRunBatEnv.html

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