Page 1 of 1

Cmd prompts from widget designer?

PostPosted: Wed Aug 12, 2020 8:46 pm
by thommoser
Hi together

I'm trying to shutdown remote computers (normal computers without PBMenu installed)...
I'm wondering if there is a way to send Cmd prompts from widget designer itself as would you use "CMD" on windows directly? I've installed WD 6.12...

thanks for any help!

Re: Cmd prompts from widget designer?

PostPosted: Fri Aug 14, 2020 2:07 pm
by Yvonne Groetzschel
Hello,

You can use the command ApplicationStart(Filepath:String,Text:String) to run a .cmd or .bat file.
Please find the explanation and an example how to use this command in our helpfile:
https://www.coolux.de/root/downloads/su ... d_list.htm

You have also the possibility to create your .bat or .cmd file directly in WD, e.g.:
- Create a Textbox and add the related commands.
- Use the command TextBox1.ToFile(filepath) to create a file and save it as .bat or .cmd
- Finally you can use the ApplicationStart command to run this file.

I hope that helps.

Cheers,
Yvonne