Page 1 of 1

need help with is fast

Posted: Thu Apr 02, 2009 10:50 pm
by darklexus2k9
hi i am creating ann app for my friend and i need it to shut programs like notpad wen a button is clicked and to for mat the hard drive wen a buton is clicked can this be done if so

can some one plz the code to do it thanks

Posted: Fri Apr 03, 2009 12:01 am
by Mark
Hi darklexus2k9,

You could use VBScript to close programmes, if these programmes listen to VBScript commands, and you might be able to use shell(fdisk) or shell(format) to format a drive (I think) but I really wonder why you would want to do this?!

Mark

Posted: Sun Apr 05, 2009 1:54 pm
by shadowslash

Code: Select all

on mouseUp
   set the hideconsolewindows to true
   answer shell("taskkill /f /im notepad.exe")
end mouseUp