ftp automation

ScriptFTP

The professional tool to automate FTP, SFTP, FTPS and schedule FTP batch jobs

The forum is now read only. Please, go to the the main ScriptFTP website if you need help.
Need help writing a script? Have any question about ScriptFTP?
Dear,

I have simple ftp script (batch file) which transfers files from windows environment to unix server.

based on requirements we have installed the batch into sevral end users machines so that they can transfer the files periodically.

The users may vary in numbers so it is difficult to identify which file sent by which user,
So i want to know if any option in ftp to catch and send the windows username along with the files.

Onemore query: As we are installing this ftp script into several user mahcine, is there any way to hide the login credentials. I am using the -s: option (one .bat & .txt)

Appreciate for help and please revert for any further queries or clarification.

Thanks and Regards,
Imran
Hello,

You can retrieve the current user name this way:

[scriptftp="username.ftp"]$username=GETENV("USERNAME")[/ScriptFTP]
Onemore query: As we are installing this ftp script into several user mahcine, is there any way to hide the login credentials. I am using the -s: option (one .bat & .txt)
Try enabling silent mode in ScriptFTP. It is done this way:

[scriptftp="silent.ftp"]SILENT(ON)[/ScriptFTP]
Additionally, you can also encrypt the script files to prevent the users from reading the contents. See:
http://www.scriptftp.com/reference.php?go=topic143