energizerabby
New Member
I have been trying to figure this out for days and days.
I need to run a program from a batch file with administrator rights. I can run the batch file in 256 colors and all the other settings, but I can't run it as administrator.
So I made the cmd window with administrator rights, and I can run the batch file there and it works.
BUT, I want to automatically run the batch file. I tried to set it up as a scheduled task at startup, but I couldn't get it to work. I don't know if "administrator" means any account in Vista 64 that shows "administrator" or if it must be setup from the "Administrator" account, which I guess I would have to unhide and then access.
So, I have the nice VBScript program, and it will call the cmd window with administrator rights. But no more. Then I have to type the name of the batch file in. So is it possible for the VBScript program to call the cmd window either with the batch file name attached so it would run when the cmd window starts, or have the VBScript start the cmd window and then in the next step of the script send the batch file name to the cmd window. But I can't find any way to do this.
So hopefully one of the experts here can help. Thanks.
I need to run a program from a batch file with administrator rights. I can run the batch file in 256 colors and all the other settings, but I can't run it as administrator.
So I made the cmd window with administrator rights, and I can run the batch file there and it works.
BUT, I want to automatically run the batch file. I tried to set it up as a scheduled task at startup, but I couldn't get it to work. I don't know if "administrator" means any account in Vista 64 that shows "administrator" or if it must be setup from the "Administrator" account, which I guess I would have to unhide and then access.
So, I have the nice VBScript program, and it will call the cmd window with administrator rights. But no more. Then I have to type the name of the batch file in. So is it possible for the VBScript program to call the cmd window either with the batch file name attached so it would run when the cmd window starts, or have the VBScript start the cmd window and then in the next step of the script send the batch file name to the cmd window. But I can't find any way to do this.
So hopefully one of the experts here can help. Thanks.