Restart Computer.
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Restart Computer.
Hi Guys!!!!!
I am trying to restart my computer with the following console command: "shutdown /r". How would I go about achieving this?
Many Thanks,
Googie.
I am trying to restart my computer with the following console command: "shutdown /r". How would I go about achieving this?
Many Thanks,
Googie.
-
- Posts: 720
- Joined: Thu Sep 11, 2014 1:49 pm
- Location: The Netherlands
Re: Restart Computer.
You can use the Shell Command.
https://livecode.fandom.com/wiki/Shell
Or see LC dictionary
Regards,
Paul
https://livecode.fandom.com/wiki/Shell
Or see LC dictionary
Regards,
Paul
Re: Restart Computer.
I'm not sure I understand the question, Googie.
It would be nice to know which OS your using as well, but what do you see when you open the CLI and type in "shutdown /r" ?
It would be nice to know which OS your using as well, but what do you see when you open the CLI and type in "shutdown /r" ?
-
- Posts: 720
- Joined: Thu Sep 11, 2014 1:49 pm
- Location: The Netherlands
Re: Restart Computer.
I assumed it is a windows OS because shutdown /r is a typical Windows console command for restarting your PC.
And being on the LiveCode forum I also assumed it needed to be done within a LC Stack.
Probably not to smart of me as assumptions can make an ........
And being on the LiveCode forum I also assumed it needed to be done within a LC Stack.
Probably not to smart of me as assumptions can make an ........
Re: Restart Computer.
My initial thoughts as well Paul, however, shutdown works across all 3 desktop OS'es, so it would be nice to know which is being worked with for testing, since the various D'OS'es can vary in how shell works.
I've made an ........... of myself plenty, I wouldn't sweat it too much heh heh.
*Edit - since we're in the 'Windows' section, I think I just did again hahah.
I've made an ........... of myself plenty, I wouldn't sweat it too much heh heh.
*Edit - since we're in the 'Windows' section, I think I just did again hahah.
Re: Restart Computer.
As Paul already mentioned, use SHELL:
Code: Select all
...
put shell("shutdown /r") into tDummy
...