[amibroker] Re: How to run multiple parallel AA functions using VBscript?

2009-05-19 Thread ozzyapeman
Thanks for the tip Mike. I will start reading up on ShellRunAs. --- In amibroker@yahoogroups.com, "Mike" wrote: > > If you don't want to mess around with batch files, and just want to be able > to right click on your VBScript file and say "run as ", then have a > look at ShellRunAs which is th

[amibroker] Re: How to run multiple parallel AA functions using VBscript?

2009-05-18 Thread Mike
If you don't want to mess around with batch files, and just want to be able to right click on your VBScript file and say "run as ", then have a look at ShellRunAs which is the Microsoft replacement for XP's Runas: http://technet.microsoft.com/en-us/sysinternals/cc300361.aspx If you eventually d

[amibroker] Re: How to run multiple parallel AA functions using VBscript?

2009-05-18 Thread ozzyapeman
Back with another rudimentary question. It's almost working. But for some reason, I get an error when I try to run the script, "cannot find specified file". But the path is absolutely correct. The file is clearly there. The error occurs in the line highlighted below. What's weird is that the comma

[amibroker] Re: How to run multiple parallel AA functions using VBscript?

2009-05-18 Thread ozzyapeman
Okay, I'm answering my own question...but for anyone who is as new to scripting as I am, the Wscript.shell object should do the trick. For e.g. The following VBScript code opens a command window, changes to the path to C:\ , and executes the DIR command. Dim oShell Set oShell = WScript.CreateObj

[amibroker] Re: How to run multiple parallel AA functions using VBscript?

2009-05-18 Thread ozzyapeman
To clarify, at the current time I simply double click on a VBscript file, when I am logged in as the main user, and it launches my Amibroker optimizations as that user. But now, logged in as main user, I want to instead use RunAsSPC to launch the script, and pass it an alternate User/Pass - but I

[amibroker] Re: How to run multiple parallel AA functions using VBscript?

2009-05-18 Thread ozzyapeman
Thanks Mike. That makes sense. :-) I guess what I am also trying to figure out - is how do I launch said scripts without having to manually open a command prompt and manually type in something like the following for each of the 8 scripts: c:\runasspc\runasspc.exe /program:"c:\myVBscript.vbs /user

[amibroker] Re: How to run multiple parallel AA functions using VBscript?

2009-05-18 Thread Mike
You run the VBScript as the other user! Anything done from within the script will be done as the user of which the script was launched. Whatever means you were using to run the script as the current user, just do the same using your runas utility. Mike --- In amibroker@yahoogroups.com, "ozzyap

[amibroker] Re: How to run multiple parallel AA functions using VBscript?

2009-05-18 Thread ozzyapeman
Okay, since I am using Windows Vista, which does not have the same RunAs utility as Win XP, I had to install a utility, RunAsSPC. That utility works fine in manual testing. For example, if I am logged in as User: AB01 but want to open broker.exe under User: AB03, I just type the following in the c

[amibroker] Re: How to run multiple parallel AA functions using VBscript?

2009-05-18 Thread ozzyapeman
Thanks, Mike. --- In amibroker@yahoogroups.com, "Mike" wrote: > > You will need to run each instance as a separate user. Each user must have > permission to run the application. It is not necessary to log in/out of each > user account to start the process. > > You can read the setup requirem

[amibroker] Re: How to run multiple parallel AA functions using VBscript?

2009-05-17 Thread Mike
You will need to run each instance as a separate user. Each user must have permission to run the application. It is not necessary to log in/out of each user account to start the process. You can read the setup requirements of MCO in the Files section of this group for setting up the users. Then