Fyzzle Posted November 11, 2009 Posted November 11, 2009 I'm setting up some scripts for family members to automate some of their more mundane tasks. This is what I have for the related functions: Func defrag() ShellExecuteWait("C:\Program Files\Defraggler\Defraggler.exe","c:\") EndFunc And also Func defragcnfg() ShellExecuteWait('schtasks.exe','/create /SC DAILY /TN fragme /TR "\"C:\Program Files\Defraggler\Defraggler.exe"c:\" /ST 00:15:00 /RU SYSTEM') EndFunc What i'd like to do is have an input asking which drives they would like defragged, then both functions reference the output to run now, and schedule. Anyone have any recommendations? I'm fairly new to autoit, and I did quite a bit of searching but I may have overlooked something awesome.
whim Posted November 11, 2009 Posted November 11, 2009 Look up 'DriveGetDrive' in the help file cheers, whim
Fyzzle Posted November 11, 2009 Author Posted November 11, 2009 Look up 'DriveGetDrive' in the help filecheers,whimBrilliant, thanks
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