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
WD to create and modify text files? (Read 2573 times)
Chris_Quan
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 9
WD to create and modify text files?
Oct 19th, 2004 at 3:46pm
 
I assume this is not what WD is designed to do. There are many search and replace utilities. However, I have yet to find one that will let me create and modify text files. If the new folder is created, WD will create a text file inside

For example, it will create a text file using the folder name for each of the folders (and sub-folders). Below is an example of the content of the text file.

@TI=FULL_Path_To_The_Folder
@CZ=Higher_Level_Folder_Name
@FZ=Folder_Name

Chris
Back to top
 
 
IP Logged
 
Gert
YaBB Administrator
*****
Offline



Posts: 2224
The Netherlands
Re: WD to create and modify text files?
Reply #1 - Oct 19th, 2004 at 4:21pm
 
Modifying the text file would be tricky, but something like the following should do:
Code:
@echo off
if "%WD_REASON%" NEQ "DIRNEW" GOTO :QUIT

echo @TI=%WD_FILE% > "%WD_FILE%\folderinfo.txt"
echo @FZ=%WD_FILE_N% >> "%WD_FILE%\folderinfo.txt"

:QUIT
 



I am not sure what the @CZ thing is supposed to be...

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
 
Chris_Quan
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 9
Re: WD to create and modify text files?
Reply #2 - Oct 19th, 2004 at 4:27pm
 
Absolutely awesome!  This saves me a lot of nap time.. This is cool. Thanks again.

Chris
Back to top
 
 
IP Logged
 
Page Index Toggle Pages: 1