rejetto forum
Software => HFS ~ HTTP File Server => Topic started by: trpsjt2008 on October 06, 2010, 09:16:01 PM
-
Hi I just start using HFS 2 day ago i use upload to contact with my friend on grade 8
i use My Program On vb.net Be a file watcher in Upload folder
i want to know who is the uploader by renaming the file to filename + _username
i don't Know how to handle Template
How can i rename the file before upload
-
Welcome trpsjt2008 ! :)
Rename the file after upload:
1 - Use a beta version of HFS
2 - You type : ALT + F6
2 - You copy the following code in the file that appears:
[+upload name]
%user%_%item-name%
You save and close the file.
You can invert as %item-name%_%user% if you want, but you "enclose" the file extension.
-
Thanksssssssssssssssssssssssๆๆๆๆๆๆๆๆๆๆๆๆ
Can i use
@%user%@%item-name%
does @ symbol affect anything?
this for my program
Get the uploader of file and save data XML
rename the file back
In VB.net
Use FileWatcher if any file upload it will get the data then record and rename back
how can i edit user manually with program where is it? not with HFS
because i want to make registration throught my program by uploading userdata throught site
One More Question
Did i use english correctly? I'm Thai
-
Can i use
@%user%@%item-name%
does @ symbol affect anything?
Yes you can use this symbol. There is no problem.
(no symbol is also possible)
how can i edit user manually with program where is it? not with HFS
because i want to make registration throught my program by uploading userdata throught site
I'm not sure to understand what you want to do. If someone has an answer ...
One More Question
Did i use english correctly? I'm Thai
I understood two questions on three ... you get more than the average ... just like me. :D
-
Ok Second Question :
Where does the HFS Store Username and password in my computer i want to change them Manually
-
In Expert mode:
Menu > Save options > To file...
An file named hfs.ini will be created in the folder of hfs.exe
Accounts line is:
accounts=...
-
Thanks ;D
-
Encrypted or Something
account data has been encrypted
Are there Anysetting that encrypt the account data
:)
-
The format is a standard "base64".
PsPad can encode and decode this format; Notepad++ can decode it.
But it's possible to add a new account by just appending this (plain) text to the "accounts=" line
;login:myusername:mypassword
myusername & mypassword will be encoded once rewritten by HFS in the .ini file.
-
;D ;D THX
-
as far as i can remember, you can read the ini file, but if HFS is running you can't just write to it, because changes are lost.
your program should read from the ini (just the first time)
then it processes the accounts line, builds the new one, then it should call
hfs -c accounts=xxxxxxxxxxxxxxxxxxxxxxx
-
How many Command Line Arg in HFS
-
if you google for hfs command line, the first result is
http://www.rejetto.com/wiki/index.php/HFS:_Command_line_parameters