Go Back   FlashFXP Forums > > > >

International Help Get help in your native language (non-english).

Reply
 
Thread Tools Rate Thread Display Modes
Old 02-28-2005, 03:02 AM   #1
Harm
Too much time...
Ultimate Scripter
 
Join Date: Jul 2003
Posts: 1,430
Default

You could try this.

renameintro.itcl:
Code:
set ri(paths) "/private /groups"

proc renameintro {vfspath path} {
set dirs [glob -nocomplain -type d "$path/*"]
foreach dir $dirs {
	iputs -nobuffer "Checking $vfspath."
	if {![file exists [file join $path ".intro"]]} {
		renameintro "$vfspath/[lindex [split $dir /] end]" "$dir"
	} else {
		catch {file rename -force [file join $path ".intro"] [file join $path ".ioFTPD.message"]}
	}
}
return 0
}

foreach path $ri(paths) {renameintro "$path" "[resolve pwd $path]"}
return 0
ioFTPD.ini:
Code:
[FTP_Custom_Commands]
RENAMEINTO = TCL C:\ioFTPD\scripts\renameintro.itcl

[FTP_SITE_Permissions]
RENAMEINTRO = M
Harm is offline   Reply With Quote
Reply

Tags
.intro, divx, ftp, message, window


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Rename darkone Bug Reports 0 01-07-2003 07:04 AM


All times are GMT -5. The time now is 08:45 AM.

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