?
Solved

downloading files

Posted on 2003-03-13
10
Medium Priority
?
161 Views
Last Modified: 2010-04-16
well, waht i want to do is a program in Pascal that does this:

Downloads two files(I don´t know if this is possible in Pascal);
then it runs the programs like this
c:\Program1.exe Program2.exe
The program2 is a parameter to Program1.exe

Thks
Any anwser is welcome and apreciated
0
Comment
Question by:Holy_Vampire
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
10 Comments
 
LVL 49

Expert Comment

by:dbrunton
ID: 8133817
The second part's possible.

uses Dos;


SwapVectors;
Exec(GetEnv('COMSPEC'), Command);
SwapVectors;


Examine the Exec command under Turbo Pascal.  The second part possibly but downloading from what and where.
0
 
LVL 15

Expert Comment

by:VGR
ID: 8134586
you can download files if you've any HTTP component like NMHTTP
0
 
LVL 1

Expert Comment

by:Noturno
ID: 8186420
The solution for the first part is to use any windows program (you can make these programs) that downloads the files for a folder defined by you. After you can read these files in the predefined folder.
The method to make a program that download the files in Delphi is descripted by VGR above.

Regards,

Gleyson -> Noturno

(For give for my poor english, i'm Brazilian)
0
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
LVL 15

Expert Comment

by:VGR
ID: 8186479
I can even expand on this, as I use it extensively 8-))

The solution for your problem may be (and shall be ?) done 100% in Delphi, starting with D4

if you want some code...
0
 
LVL 1

Expert Comment

by:Newt6398
ID: 8194210
Not quite sure what you mean: but try

WinExec('Myprogdir\MyProg.exe');

to pass parameters such as for internet explorer you can do
this

WinExec('C:\program files\internet explorer\iexplore.exe www.yahoo.com');

put this in a button click to try it.

Winexec is for backward compatibility to win16 might be better to use the create process function.
0
 

Expert Comment

by:CleanupPing
ID: 9314361
Holy_Vampire:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
0
 
LVL 15

Expert Comment

by:VGR
ID: 9324090
del & norefund
0
 
LVL 49

Expert Comment

by:dbrunton
ID: 9326743
No, PAQ and no refund.
0
 
LVL 15

Expert Comment

by:VGR
ID: 9330166
(always agrees with dbrunton)
0
 

Accepted Solution

by:
AnnieMod earned 0 total points
ID: 9679003
PAQ'd and 40 points NOT refunded

AnnieMod
CS Moderator
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article lists the top 5 free OST to PST Converter Tools. These tools save a lot of time for users when they want to convert OST to PST after their exchange server is no longer available or some other critical issue with exchange server or impor…
Active Directory can easily get cluttered with unused service, user and computer accounts. In this article, I will show you the way I like to implement ADCleanup..
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
Suggested Courses

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question