Solved

start defrag from my prog

Posted on 2001-09-15
7
139 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
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 

Author Comment

by:moonlightcyber
ID: 6485361
will do
0
 
LVL 50

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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Suggested Solutions

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

803 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