|
||
Title: Can't load mox variable outside of WSH folder Post by krav_magan on Jan 11th, 2015, 7:33pm I'm trying to run my script from a directory other than the WSH folder located in the midiox install path. The script works fine when located in the WSH folder, but fails to load the mox variable when located in My Documents (like so): var mox = WScript.CreateObject("Midiox.MoxScript.1"); I tried copying all the files from the midiox path to the My Documents folder but it still wouldn't work. Why is this? |
||
Title: Re: Can't load mox variable outside of WSH folder Post by krav_magan on Jan 14th, 2015, 8:02am ...anyone out there... ? |
||
Title: Re: Can't load mox variable outside of WSH folder Post by Breath on Jan 16th, 2015, 8:43pm Hi I'm not a Python writer, but I would think that you should just write the full path. var mox = WScript.CreateObject("C:\Documents and Settings\Royce\My Documents\Script\Midiox.MoxScript.1"); (In C++ you would need to replace \ with \\) Royce |
||
Title: Re: Can't load mox variable outside of WSH folder Post by krav_magan on Mar 1st, 2015, 10:01am I actually figured this out at some point. The problem was when I copied the cscript.exe file (I copied one into the script folder so I could run it as admin) over to the new directory, it doesn't save the privilege settings so I had to set the copied cscript.exe to run as admin as well. Hope this helps someone in the future. |
||
MIDI-OX User Forum » Powered by YaBB 1 Gold - SP 1.3.1! YaBB © 2000-2003. All Rights Reserved. |