skafreak_510 Posted October 11, 2005 Share Posted October 11, 2005 I'm trying to create a script that will defrag the "C:\" but I'm not sure how to go about doing this. I can't use the "run ()" command. I'd like to avoid mouse clicks and send () as much as possible. What is the best way to go about this? thank you Link to comment Share on other sites More sharing options...
BigDod Posted October 11, 2005 Share Posted October 11, 2005 I'm trying to create a script that will defrag the "C:\" but I'm not sure how to go about doing this. I can't use the "run ()" command. I'd like to avoid mouse clicks and send () as much as possible. What is the best way to go about this?thank youIf you look in Scripts and Scraps you will find one that someone has made for Windows 2000. This will give you a starting point. Time you enjoyed wasting is not wasted time ......T.S. Elliot Suspense is worse than disappointment................Robert Burns God help the man who won't help himself, because no-one else will...........My Grandmother Link to comment Share on other sites More sharing options...
MHz Posted October 11, 2005 Share Posted October 11, 2005 Not sure why you cannot use Run()? but XP users just use defrag for script use. Run(@ComSpec & ' /c Defrag c:') At a command prompt, just type defrag /? for options. Link to comment Share on other sites More sharing options...
skafreak_510 Posted October 11, 2005 Author Share Posted October 11, 2005 Does the Command Prompt Defrager work the same as the main XP defrager. I spect it should but i just wanted to make sure. I also need to run it as admin and so it runs a schedule. I know how to do the last to things I just need to know if it would even work in command prompt. Thanks again Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now