angkor Posted October 21, 2011 Posted October 21, 2011 We setup a ftp server in Windows 2008 R2 using IIS. The Server is a domain controller. We like to use a domain user to make ftp connection but we prefer not hard code password. How can we archive it? Thx Angor Quote
ICTCity Posted October 21, 2011 Posted October 21, 2011 The only thing you can do is to write the password in a text file and then read it from your program / script. I'm not really sure I understood right... Quote -------------------------------------------------------- Tu peux aussi crire en franais. Du kannst auch auf Deutsch schreiben. Puoi scrivere anche in italiano. --------------------------------------------------------
angkor Posted October 21, 2011 Author Posted October 21, 2011 Hi, do you have a command detail how I should write? Quote
ICTCity Posted October 21, 2011 Posted October 21, 2011 Hi, do you have a command detail how I should write? maybe... but first I need to know which language are you using (batch file, vbs, vb.net, c, ...) thanks. Quote -------------------------------------------------------- Tu peux aussi crire en franais. Du kannst auch auf Deutsch schreiben. Puoi scrivere anche in italiano. --------------------------------------------------------
angkor Posted October 21, 2011 Author Posted October 21, 2011 Hi, a batch file. I appreciated for your help. Thx Quote
ICTCity Posted October 21, 2011 Posted October 21, 2011 Here you are: > script.ftp ECHO USER MyUserId >>script.ftp ECHO MYpassword FTP -v -s:script.ftp ftp.yourHost.com TYPE NUL >script.ftp DEL script.ftp Quote -------------------------------------------------------- Tu peux aussi crire en franais. Du kannst auch auf Deutsch schreiben. Puoi scrivere anche in italiano. --------------------------------------------------------
angkor Posted October 21, 2011 Author Posted October 21, 2011 Thx ICTCity! I will give it a try and let you know if I have any questions. Quote
Recommended Posts