Indigo Rose Software

Professional Software Development Tools

 
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Join Date
    May 2007
    Location
    Sydney, Australia
    Posts
    1,546

    Need help with AMS/WGet intergration problem

    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.

  2. #2
    Join Date
    Apr 2005
    Location
    São Paulo, Brazil
    Posts
    2,539
    Why don't you use HTTP.Download()?

    Ulrich

  3. #3
    Join Date
    May 2006
    Posts
    5,380
    the only advantage of useing WGet in AMS is being able to download in the background and have the ams app do other stuff

    other than that i would use AMS to do all the download work

    you can use "Shell.GetFolder" to get the path to the users My Docs folder

    if you must use WGet or Curl, try setting the working folder "in the File.Run function" to the folder you want the file to be downloaded to
    Open your eyes to Narcissism, Don't let her destroy your life!!

  4. #4
    Join Date
    May 2007
    Location
    Sydney, Australia
    Posts
    1,546
    upeters & RizlaUK,

    Yep, thanks guys. I had a closer look at the AMS documentation/examples in relation to your suggestions. I think you are both right ... better to use HTTP.Download and get AMS to do all the work. Thankyou both for your input!

Similar Threads

  1. Problem installing fonts
    By ByronFS in forum Setup Factory 7.0
    Replies: 5
    Last Post: 05-08-2006, 12:23 PM
  2. Video Problem
    By ScottDuncan in forum AutoPlay Media Studio 5.0
    Replies: 0
    Last Post: 07-10-2004, 01:38 PM
  3. PROBLEM: Setup Starts and then Crashes
    By Support in forum Setup Factory 5.0
    Replies: 0
    Last Post: 10-15-2002, 03:02 PM
  4. PROBLEM: Setup Requests Disk 2 in a Single File Setup
    By Support in forum Setup Factory 6.0 Knowledge Base
    Replies: 0
    Last Post: 10-09-2002, 02:04 PM
  5. INFO: Tips for Debugging Action Lists in AutoPlay Media Studio 4.0
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 10-03-2002, 08:38 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts