Go Back   FlashFXP Forums > > > >

! Requests Need a script or some sort of cool .bat file ? Ask here!

Reply
 
Thread Tools Rate Thread Display Modes
Old 11-07-2003, 09:52 AM   #1
wooolF[RM]
Senior Member
ioFTPD Foundation User
 
Join Date: Oct 2003
Posts: 411
Talking Tagging new releases with own NFO

uhm... here's the idea:

When a release is 100% completed, it gets "tagged" means there will be copied predefined NFO file from predefined location to that 100% complete release.

Here's the try:

/ioFTPD/system/ioFTPD.ini
Code:
[Events]
..skipped..
OnUploadComplete = EXEC ..\scripts\ioBanana.exe upload
OnUploadComplete = EXEC ..\scripts\tag.bat
..skipped..
/ioFTPD/scripts/tag.bat
Code:
@echo off
cd %PATH%
copy c:\ioftpd\bla.nfo
exit 0
bla.nfo located in c:\ioFTPD

All folders that have been completed (as I see it by created new folder 100% complete blablabla) does not have that NFO file...

Does anyone see a problem?

Thanx in advance
wooolF[RM] is offline   Reply With Quote
Old 11-07-2003, 10:02 AM   #2
ADDiCT
Senior Member
FlashFXP Beta Tester
ioFTPD Scripter
 
Join Date: Aug 2003
Posts: 517
Default

tag.bat will get executed on every uploaded file ... i don't think that's what u want
there is no ioFTPD event for 'OnReleaseComplete' since that's determined by the zipscript
ADDiCT is offline   Reply With Quote
Old 11-07-2003, 10:08 AM   #3
Harm
Too much time...
Ultimate Scripter
 
Join Date: Jul 2003
Posts: 1,430
Default

Why don't you use the 'on_release_complete' option of ioBanana ?

I doubt that %PATH% will be resolved to the path of the completed release, but %DIR% in the 'on_release_complete' line will be.
Harm is offline   Reply With Quote
Old 11-07-2003, 10:31 AM   #4
wooolF[RM]
Senior Member
ioFTPD Foundation User
 
Join Date: Oct 2003
Posts: 411
Default

I will try it, thanx for both tips
Apreicatted

Basically what I have to do is:

/ioFTPD/scripts/ioBanana.ini
on_release_complete=c:\ioftpd\scripts\tag.bat %DIR%

/ioFTPD/scripts/tag.bat
echo off
cd %%1
copy c:\ioftpd\bla.nfo
exit 0

bla.nfo located in c:\ioFTPD

will try this Thanx for extra comments and help on IRC, Harm
wooolF[RM] is offline   Reply With Quote
Old 11-07-2003, 01:36 PM   #5
wooolF[RM]
Senior Member
ioFTPD Foundation User
 
Join Date: Oct 2003
Posts: 411
Default

nope... doesn't work... I tried with 3 releases, 2 of them was 2 CDs

I get announces on IRC that release is done 100% etc (from ioBanana) but no NFO file in the released folder
wooolF[RM] is offline   Reply With Quote
Old 11-07-2003, 03:12 PM   #6
Guardian
Senior Member
 
Join Date: May 2003
Posts: 131
Default

got bored so i made this lil thing ... maybe u like to try out

http://www.ioftpd.com/board/showthre...?threadid=1848
Guardian is offline   Reply With Quote
Old 11-07-2003, 04:38 PM   #7
wooolF[RM]
Senior Member
ioFTPD Foundation User
 
Join Date: Oct 2003
Posts: 411
Default

Problem fixed, thanks to everyone participating
wooolF[RM] is offline   Reply With Quote
Reply

Tags
100%, complete, nfo, predefined, upload

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 12:21 PM.

Parts of this site powered by vBulletin Mods & Addons from DragonByte Technologies Ltd. (Details)