Hi all,
Was hoping someone might be able to help me with the following problem. (I guess this is really more of a WGet problem than an AMS problem, but was hoping someone might know the answer anyway):
Basically what I'm doing is using AMS to create a simple GUI for the command-line utility called "WGet" (which allows the user to download files via the command prompt).
What I've done, is place a copy of WGet in the AMS "Documents" folder, which is then launched via a preconfigured batch-file after clicking the appropriate button on my AMS page.
So far, everything works fine ... WGet retrieves the needed file and downloads it via the command-prompt. It does this by using the standard DOS command for downloading files with WGet. This command is:
wget -v --load- http://www.example.com
However, my problem is that by using this command, the file will always be downloaded to the same folder/directory from which WGet is launched (in this case, that folder is the AMS 'Documents' folder.
What I want instead, is for the file to be downloaded to the Windows "MyDocuments" folder instead. To complicate matters further, I also want the file to be downloaded to the Windows "MyDocuments" folder, REGARDLESS of the Drive-Letter on which the user has Windows installed (ie. the user's MyDocuments folder might be on Drive-D as opposed to standard Drive-C).
So, basically what I need to know is how to change the DOS-command so that "WGet" downloads files to the appropriate directory. Like I said, I realize this is more of a WGet/DOS issue than an AMS issue, but I'm hoping someone might be able to help anyway.
PS.
If needs be, I can use "Curl" (an aternative command-line downloader) instead of "WGet". But at the moment, I'm facing the same problem when I use "Curl". The command I use for it is:
curl -L -O --http://www.example.com
which also causes the file to be downloaded to AMS "Documents" folder instead of the desired Windows "MyDocuments" folder.

Reply With Quote