Saved Bookmarks
| 1. |
Solve : FTP (again...)? |
|
Answer» I know this is getting a bit old. Whenever I ask about FTP, people always put the commands/username/password into another file. I can't do that (While remaining secure). Can the commands STAY in the batch file?I don't think so. The STDIN device is normally assigned to the keyboard device. It can be redirected to a file, however if you redirect it back to the FTP batch file all those pesky batch commands will be interpreted incorrectly in the FTP shell. I don't think so. The STDIN device is normally assigned to the keyboard device. It can be redirected to a file, however if you redirect it back to the FTP batch file all those pesky batch commands will be interpreted incorrectly in the FTP shell.So what you are saying that FTP in batch must be: Code: [Select]ftp -s:file.ext ftp.host.com What I am asking is can I put all the commands that WOULD be in file.ext in the batch file?There is a way of keeping it in the batch, but its no more secure than having it in a separate file, you still need the login details in plain view. You will have to google it, but essentially it involves tacking the CONTROL file on to the end of your batch -- heres a link to one example http://www.dostips.com/DtCodeBatchFiles.php#Batch_FtpBatch Good luck GrahamQuote from: GPL on March 12, 2009, 04:36:51 AM There is a way of keeping it in the batch, but its no more secure than having it in a separate file, you still need the login details in plain view. The people I am dealing with aren't smart enough to know how to "decompile" a exe (from a .bat). I'll check the link ASAP.Quote from: Helpmeh on March 11, 2009, 12:11:24 PM I know this is getting a bit old. Whenever I ask about FTP, people always put the commands/username/password into another file. I can't do that (While remaining secure). Can the commands STAY in the batch file?the "proper" ways to do it, 1) use SFTP (secure FTP). Using Keys instead of password. 2) still using windows FTP client, BUT giving proper access control to whoever needs to execute the batch. Whoever has no business meddling with the batch file, will not be allowedQuote from: ghostdog74 on March 14, 2009, 09:35:20 AM the "proper" ways to do it, What??? The people who will be running the batch file don't know enough about batch to know how to "decompile" it...so as long as I "compile" it to a .exe , they can't see the code. I don't want them to download anything that they don't need to. What do you mean for the SECOND part?Quote from: Helpmeh on March 16, 2009, 07:58:37 PM you will never know if a person is smart or not smart. don't assume. trust me. Quote What do you mean for the second part?I don't know how you are using FTP. you just want your users to do file transfers to your servers?? it might be better to shed some light on what you are doing with the file transfers. Quote from: ghostdog74 on March 16, 2009, 08:17:49 PM you will never know if a person is smart or not smart. don't assume. trust me. The people who I am dealing with have absolutely NO knowledge of DOS whatsoever. What I am doing with FTP is, 1. Appending a file 2. Getting a file Pretty simple... So what do you mean for this? Quote from: ghostdog74 on March 14, 2009, 09:35:20 AM 2) still using windows FTP client, BUT giving proper access control to whoever needs to execute the batch. Whoever has no business meddling with the batch file, will not be allowed |
|