Solved

Access copy program Windows

Posted on 1999-01-24
6
146 Views
Last Modified: 2012-05-04
Hello,

When I am in My Computer(Win95/98) and rightclick the A:
and then click copy disk there is a form showing.
Who can tell me how to access this program from delphi?

Thanks,
Vincent
0
Comment
Question by:Vincentg
  • 4
  • 2
6 Comments
 
LVL 5

Accepted Solution

by:
heathprovost earned 10 total points
ID: 1363051
Place a button on a form and copy this over the onclick event

procedure TForm1.Button1Click(Sender: TObject);
begin
  ShellExecute(Form1.Handle, nil, 'rundll32.exe', 'diskcopy.dll,DiskCopyRunDll', nil, SW_SHOWNORMAL);
end;

This will execute it, however the dialog does not check the readiness of any removable drives until a copy operation is started (This may or may not be what you want).

Hope this helps

Heath  
0
 

Author Comment

by:Vincentg
ID: 1363052
Heath,

Thanks a lot :)

Vincent
0
 

Author Comment

by:Vincentg
ID: 1363053
Heath,

Can you also tell me how this works with the format option..
I found it in shell.dll but I don't know how to execute it.

Thanks,
Vincent


0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

Author Comment

by:Vincentg
ID: 1363054
Heath,

Can you also tell me how this works with the format option..
I found it in shell.dll but I don't know how to execute it.

Thanks,
Vincent


0
 
LVL 5

Expert Comment

by:heathprovost
ID: 1363055
Sure, it is like this

procedure TForm1.Button1Click(Sender: TObject);
begin
  ShellExecute(Form1.Handle, nil, 'rundll32.exe', 'shell32.dll, SHFormatDrive', nil, SW_SHOWNORMAL);
end;

No problem

Heath
0
 

Author Comment

by:Vincentg
ID: 1363056
Thanks again, Heath

I tried it with shell.dll and that didn't work.

Thanks again.
Vincent
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

939 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now