all groups > flash actionscript > april 2004 >
You're in the

flash actionscript

group:

Turn off WIN2000 with Flash


Turn off WIN2000 with Flash mkdn
4/26/2004 9:48:00 PM
flash actionscript: Hello

I had a problem, I want to know if Flash can shut down Windows2000? I don?t
know if flash can use the FScommand or an instruction with Javascript to do
that because I need that for a demo in a single computer.

Thanks for your help

MiKe
Re: Turn off WIN2000 with Flash NSurveyor
4/26/2004 10:29:50 PM
Re: Turn off WIN2000 with Flash ShadowKnyte
4/27/2004 12:25:49 AM
Have you ever stopped to consider why Flash can't do that? ...the Blaster worm shutdown windows machines.
Re: Turn off WIN2000 with Flash mkdn
4/27/2004 1:08:35 PM
Re: Turn off WIN2000 with Flash nITiNkIlLeRmEeRuT
4/28/2004 2:28:56 AM
Not if u r creating a webbased application means displaying flash swf in
browser. But it is possible if u r creating an application using flash & VB.
There is an API [b]ExitWindowsEx[/b] which can be accessed using VB to
shutdown, logoff, restart a system. For that u must be having knowledge of
Visual Basic.
Re: Turn off WIN2000 with Flash mkdn
5/4/2004 1:00:41 PM
Re: Turn off WIN2000 with Flash erlendbv
12/20/2005 8:29:58 PM
Hey... Sorry to lurk around in old threads and drag 'em up, but I thought it'd
be better than to write another thread on the same topic. ;)

- Well. The answer from nITiNkIlLeRmEeRuT sounds nice. I've been googling, and
VB seems to have the functionality of shutting down Windows. (e.g. this
web-site: http://www.motobit.com/tips/detpg_wmi-windows-system-shutdown/ ).

My problem: I don't have a clue about VB... :( - But I really need the
shutdown-functionality.

So my question is this: Is it possible to have a separate VB-script or EXE or
something that is triggered by a ActionScript-button inside the Flash-EXE?

Can someone please explain how this could be done (or another way to acheive
it) - in details, with the needed VB-code. :)

I'd really appreciate it. :D

- Merry X-mas! ;)
Re: Turn off WIN2000 with Flash NSurveyor
12/20/2005 8:59:56 PM
You can use a batch file... Just open up notepad, and paste in the following:

@echo off
shutdown.exe -s

And then, go to File > Save. Create a new folder named fscommand in the same
direcotry as your flash file published as a windows projector file.Save as
shutdown.bat and set the file type to "All files ".

In your flash doc,use:

fscommand("exec","shutdown.bat");
Re: Turn off WIN2000 with Flash erlendbv
12/20/2005 9:11:48 PM
Wow! That was a quick reply! Thanks!

And this will shut down the computer? :D

Hmm... maybe I'll just test it instead of asking. ;)

Re: Turn off WIN2000 with Flash erlendbv
12/22/2005 4:28:26 PM
Yes! This was perfect! :D

- Exactly what I was looking for! :)

Re: Turn off WIN2000 with Flash NSurveyor
12/22/2005 9:04:41 PM
Re: Turn off WIN2000 with Flash highlander_1
12/23/2005 6:13:50 PM
That was cool.
But do you know if I can I shut down a client from anywhere - Windows XP with SP2 for example?
Just for fun
Re: Turn off WIN2000 with Flash NSurveyor
12/27/2005 10:38:26 PM
AddThis Social Bookmark Button