| Renaming Publishing Folders with Current Time |
|
|
| Written by Hamish |
| Sunday, 26 April 2009 11:58 |
|
This tip shows how you can use Publishing Profiles and an after publish batch file to rename the publishing folder with a unique name - the current date and time. Create the Batch FileCreate a text called rename_dir.bat and save it in a central location, for example, C:\Program Files\Author-it 5\Data\Templates. Paste the following commands in the text file and save it: @echo off for /f "tokens=2 delims=/- " %%f in ('date /t') do (set dd=%%f)for /f "tokens=3 delims=/- " %%g in ('date /t') do (set mm=%%g)for /f "tokens=4 delims=/- " %%k in ('date /t') do (set yy=%%k)for /f "tokens=1 delims=/: " %%h in ('time /t') do (set hh=%%h)for /f "tokens=2 delims=/: " %%m in ('time /t') do (set mm=%%m)
Set Up Publishing Profile to Call Batch FileAdd an "After Publishing" Command Line action to the Publishing Profile that calls the batch file, as shown below. |
| Last Updated on Sunday, 26 April 2009 12:31 |
Comments