Solved

start defrag from my prog

Posted on 2001-09-15
7
141 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
[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
  • 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
Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

 

Author Comment

by:moonlightcyber
ID: 6485361
will do
0
 
LVL 52

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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Copy a row 12 75
Zip Folders Using Chilkat Routines 1 86
Remove Exif Orientation before adding image to db 9 63
Excel Web Add-in Where is Visual Basic used 9 81
There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
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…

734 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