/ Published in: Revolution
This is a wrapper to the shell() function to make sure it takes care of things like hiding console windows, dealing with UNC, etc. NOTE: This is a work-in-progress and will likely be updated periodically.
Expand |
Embed | Plain Text
function stsShell pCmd set the hideConsoleWindows to true switch (the platform) case "MacOS" case "Linux" put shell(pCmd) into tResult break case "Win32" -- adjust the defaultFolder to avoid UNC error messages (thanks to Trevor for the tip) put the defaultFolder into tOldFolder set the defaultFolder to "C:\" put shell(pCmd) into tResult set the defaultFolder to tOldFolder break end switch return tResult end stsShell
Comments
Subscribe to comments
You need to login to post a comment.

The "switch the defaultFolder" fix from Trevor DeVore can be found here: http://revolution.screenstepslive.com/lessons/1993-Using-shell-on-Windows-With-UNC-Paths
http://revolution.screenstepslive.com/lessons/1993-Using-shell-on-Windows-With-UNC-Paths