need help with is fast

Deploying to Windows? Utilizing VB Script execution? This is the place to ask Windows-specific questions.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
darklexus2k9
Posts: 4
Joined: Mon Mar 30, 2009 8:35 am
Contact:

need help with is fast

Post by darklexus2k9 » Thu Apr 02, 2009 10:50 pm

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
[url=http://www.join-points2shop.eu.tf][img]http://www.points2shop.com/images/promotionbanners/120x60-Banner.gif[/img][/url]

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Post by Mark » Fri Apr 03, 2009 12:01 am

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
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

shadowslash
Posts: 344
Joined: Tue Feb 24, 2009 6:14 pm
Contact:

Post by shadowslash » Sun Apr 05, 2009 1:54 pm

Code: Select all

on mouseUp
   set the hideconsolewindows to true
   answer shell("taskkill /f /im notepad.exe")
end mouseUp
Parañaque, Philippines
Image
Image

Post Reply