Solved

start defrag from my prog

Posted on 2001-09-15
7
140 Views
Last Modified: 2010-05-02
hi, i need to start defrag from my app and then when it finishes for my app to continue processing.\
I think waitforsingleobject is needed but i don';t know much about it.
any help would be appreciated
0
Comment
Question by:moonlightcyber
  • 5
7 Comments
 

Author Comment

by:moonlightcyber
ID: 6484457
ooops..forgot to mention..that this has to work on both win95 and win2k, i think win2k handles defrag diferently.
0
 

Author Comment

by:moonlightcyber
ID: 6484459
oops, win2k disk efragmenter can't take command lines..so how the hell do i get it running from my app?
0
 
LVL 75

Expert Comment

by:Anthony Perkins
ID: 6485286
Please take care of your open questions.  For the record:

Questions Asked 24
Last 10 Grades Given A A A A A A A A A A  
Question Grading Record 16 Answers Graded / 17 Answers Received

Anthony
0
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

 

Author Comment

by:moonlightcyber
ID: 6485361
will do
0
 
LVL 51

Accepted Solution

by:
Ryan Chong earned 100 total points
ID: 6493257
Hi moonlightcyber,

Some useful links here:

Determining the End of a New Process Using WaitForSingleObject

http://www.mvps.org/vbnet/faq/main/waitforsingleobject.htm

Determining the End of a Shelled Application Using GetExitCodeProcess

http://www.mvps.org/vbnet/faq/main/getexitcprocess.htm

'Hope will help.
0
 

Author Comment

by:moonlightcyber
ID: 6494407
thnaks for the info on the process waiting bit but i need defrag to run.. and  don't think his is possible
0
 

Author Comment

by:moonlightcyber
ID: 6511968
although defrag was the main reason for the Q, the info you gave is useful.
therfore i award you the points
thanks
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

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

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

830 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