Go Back   FlashFXP Forums > FlashFXP > Release Archive > Website

Website Comments, Suggestions, Questions, Concerns, Fan mail, Hate mail, Whatever goes.

 
 
Thread Tools
Old 01-27-2005, 07:33 AM   #1
Junior Member
 
Join Date: Jul 2003
Posts: 7
Default Changing VFS on the Fly

I have 2 computers, one server, one workstation.

I have 2 network shares on the workstation that are hooked up to the ftp. Let's say they are \stuff and \whatever.

Sometimes, when I want to do harddisk recording, I don't want any external disk usage from the ftp server, so I want to be able to disconnect \stuff and \whatever from ioFTPD but keep the server running. I believe the simplest way would be to change the VFS somehow, with a bunch of site/telnet commands, but I don't know how to start or if it's even possible.

1) Is it possible?
2) If 1), any pointers?

Thanks.
Taedium Vitae is offline  
Old 01-27-2005, 08:54 AM   #2
Posse Member
Ultimate Scripter
ioFTPD Administrator
 
Join Date: Dec 2002
Posts: 2,022
Default

Simply use a .bat file:

(save in c:\ioftpd\scripts\switch_vfs.bat)
Code:
ren c:\ioftpd\etc\default.vfs _default.vfs
ren c:\ioftpd\etc\default2.vfs default.vfs
ren c:\ioftpd\etc\_default.vfs default2.vfs
That example will switch between two vfs (default.vfs and default2.vfs).

Then simply bind that .bat file to a site command in ioFTPD.ini:

[FTP_Custom_Commands]
switch_vfs = EXEC ..\scripts\switch_vfs.bat
Mouton is offline  
Old 01-27-2005, 09:21 AM   #3
Junior Member
 
Join Date: Jul 2003
Posts: 7
Default

Hey, that's way simpler than I thought. I won't need to do a rehash or something either? I.e. io reads the .vfs at every new connect?
Taedium Vitae is offline  
Old 01-27-2005, 09:43 AM   #4
Posse Member
Ultimate Scripter
ioFTPD Administrator
 
Join Date: Dec 2002
Posts: 2,022
Default

Yes. No rehash needed. Though you'll need to disconnect & reconnect the current sessions to be able to use the new .vfs
Mouton is offline  
Old 01-27-2005, 09:44 AM   #5
Junior Member
 
Join Date: Jul 2003
Posts: 7
Default

*Nod nod*
Thanks a bunch, works beautifully.
Taedium Vitae is offline  
 
Create a free account to browse our forums without ads



Thread Tools

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT -5. The time now is 01:40 AM.