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
Add additional text in the copied file (Read 2568 times)
hbreuer
YaBB Newbies
*
Offline



Posts: 11
Palma de Mallorca
Add additional text in the copied file
Feb 24th, 2006 at 2:30pm
 
Hallo,

is it possible to add (in my case, before the actual content) 2 or 3 lines of text in the monitored files, and copying it to the new location with those added lines?

Many thanks

Regards
Hans
Back to top
 
 
IP Logged
 
Gert
YaBB Administrator
*****
Offline



Posts: 2225
The Netherlands
Re: Add additional text in the copied file
Reply #1 - Feb 24th, 2006 at 6:18pm
 
Hans,

This is not possible with the standard "copy files" plugin. You can do this with the .bat file plugin by creating a batch file with this content:

Code:
COPY "C:\Texts\Header.txt" + "%WD_FILE%" D:\TargetDirectory
 



The + sign will concatenate those files.

Gert
Back to top
 

Gert Rijs - gert (at) gdpsoftware (dot) com
Blog: http://blog-en.gdpsoftware.com/
End Alzheimer's: http://www.alz.org&&...
WWW WWW GdPSoftware  
IP Logged
 
Page Index Toggle Pages: 1