Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 148
  • Last Modified:

start defrag from my prog

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
moonlightcyber
Asked:
moonlightcyber
  • 5
1 Solution
 
moonlightcyberAuthor Commented:
ooops..forgot to mention..that this has to work on both win95 and win2k, i think win2k handles defrag diferently.
0
 
moonlightcyberAuthor Commented:
oops, win2k disk efragmenter can't take command lines..so how the hell do i get it running from my app?
0
 
Anthony PerkinsCommented:
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
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
moonlightcyberAuthor Commented:
will do
0
 
Ryan ChongCommented:
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
 
moonlightcyberAuthor Commented:
thnaks for the info on the process waiting bit but i need defrag to run.. and  don't think his is possible
0
 
moonlightcyberAuthor Commented:
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: 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.

  • 5
Tackle projects and never again get stuck behind a technical roadblock.
Join Now