WatchDirectory Forum
http://www.watchdirectory.net/cgi-bin/yabb25/YaBB.pl
watchDirectory forums >> Plugins >> Add additional text in the copied file
http://www.watchdirectory.net/cgi-bin/yabb25/YaBB.pl?num=1140787838

Message started by hbreuer on Feb 24th, 2006 at 2:30pm

Title: Add additional text in the copied file
Post by hbreuer on 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

Title: Re: Add additional text in the copied file
Post by Gert on 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
[/code]

The + sign will concatenate those files.

Gert

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