Start Powershell or batch file from script?

The place to discuss scripting and game modifications for X4: Foundations.

Moderators: Moderators for English X Forum, Scripting / Modding Moderators

Trajan von Olb
Posts: 573
Joined: Wed, 4. Feb 04, 21:39
x3tc

Start Powershell or batch file from script?

Post by Trajan von Olb »

Hi,

Is there actually any way to start a powershell or even batch file from a script?

I would like to have my room lighting controlled by X4 :-)

Thanks for answers.

Trajan von Olb
Mein Traum vom Glück ist der Traum von einer anderen Menschheit. (S. Lem)
User avatar
euclid
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 13485
Joined: Sun, 15. Feb 04, 20:12
x4

Re: Start Powershell or batch file from script?

Post by euclid »

I suppose you know the answer by now but just in case: No. you cannot. ;-)

Cheers Euclid

Edit: Actually there may be a way if you don't mind to use lua. In ui > core > lua > vmdef.lua the command os.execute is listed and using that, for example os.execute[["c:\path\to\your\file.bat"]] could work. Not tested it myself, though. E.
"In any special doctrine of nature there can be only as much proper science as there is mathematics therein.”
- Immanuel Kant (1724-1804), Metaphysical Foundations of the Science of Nature, 4:470, 1786
kuertee
EGOSOFT
EGOSOFT
Posts: 818
Joined: Sun, 14. Dec 03, 13:05
x4

Re: Start Powershell or batch file from script?

Post by kuertee »

Have you checked SirNuke's pipes, Trajan?

Return to “X4: Foundations - Scripts and Modding”