Go Back   Cockos Incorporated Forums > REAPER Forums > ReaScript, JSFX, REAPER Plug-in Extensions, Developer Forum

Reply
 
Thread Tools Display Modes
Old 08-18-2019, 12:26 PM   #1
dsyrock
Human being with feelings
 
dsyrock's Avatar
 
Join Date: Sep 2018
Location: China
Posts: 565
Default When using ExecProcess to run Powershell command in Win7, reaper hang

Just a simple command:

Code:
local command="powershell -c dir"

reaper.ExecProcess(command, 0)
I tried this code in Win8, Win10, both of them are suscessful. But in Win7, after running it, reaper hang.

If I use -1 instead of 0, yes it's ok on Win7, but why in Win8 and Win10 it's ok to use both 0 and -1?

Last edited by dsyrock; 08-18-2019 at 08:39 PM.
dsyrock is offline   Reply With Quote
Old 08-18-2019, 09:01 PM   #2
dsyrock
Human being with feelings
 
dsyrock's Avatar
 
Join Date: Sep 2018
Location: China
Posts: 565
Default

I did some more test, if I give a long enough time to let it run, for example

Code:
reaper.ExecProcess(command, 1000)
then no more hang in Win7
dsyrock is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 02:25 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.