WatchDirectory home page
WatchDirectory Startseite (Deutsche Version)
Site WatchDirectory (Français)
  Welcome, Guest. Please Login or Register
YaBB - Yet another Bulletin Board
   
  HomeHelpSearchLoginRegister  
 
Page Index Toggle Pages: 1
Rename file > ouput old name + new name csv file (Read 1500 times)
KeithS
YaBB Newbies
*
Offline



Posts: 1
Rename file > ouput old name + new name csv file
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?
Back to top
 
 
IP Logged
 
Dirk
YaBB Administrator
*****
Offline



Posts: 658
South Germany
Re: Rename file > ouput old name + new name csv fi
Reply #1 - 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.
 



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

Viele Grüße / Best regards
Dirk - GdP Software

dirk [at] gdpsoftware [dot] com
http://blog-de.gdpsoftware.com
Webseite: http://www.gdpsoftware.com
WWW WWW  
IP Logged
 
Page Index Toggle Pages: 1