Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


at command not working

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,25993
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> at command not working
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 at command not working - 9/15/2005 7:09:44 AM   
  jiffy999

 

Posts: 66
Score: 0
Joined: 1/22/2005
From:
Status: offline
Anyone see why this wouldn't work?

at \\comuterrname 14:59 /interactive c:\it\adobe.bat
pause

It will create a task but does not run.

I can manually schedule the batch file to run and it works but when I script it it doesn't. Any ideas?

_____________________________

http://www.scriptmob.com
Scripting code, news and resources for network administrators.
 
 
Post #: 1
 
 RE: at command not working - 9/15/2005 7:23:21 AM   
  ebgreen


Posts: 5069
Score: 31
Joined: 7/12/2005
Status: online
I know this is probably a silly thing to ask, but you did run this prior to 14:59 right?

(in reply to jiffy999)
 
 
Post #: 2
 
 RE: at command not working - 9/15/2005 7:27:37 AM   
  jiffy999

 

Posts: 66
Score: 0
Joined: 1/22/2005
From:
Status: offline
Yes I just posted what I had in the scrpt the last time I ran it. It will pop up with a dos box and then close it real quick like it starts to run but thats all that happens. 

_____________________________

http://www.scriptmob.com
Scripting code, news and resources for network administrators.

(in reply to jiffy999)
 
 
Post #: 3
 
 RE: at command not working - 9/15/2005 7:33:13 AM   
  ebgreen


Posts: 5069
Score: 31
Joined: 7/12/2005
Status: online
Are you doing this from a run dialog or from the command prompt?

(in reply to jiffy999)
 
 
Post #: 4
 
 RE: at command not working - 9/15/2005 7:40:25 AM   
  jiffy999

 

Posts: 66
Score: 0
Joined: 1/22/2005
From:
Status: offline
command prompt

The command works on other scripts but not this one.

_____________________________

http://www.scriptmob.com
Scripting code, news and resources for network administrators.

(in reply to ebgreen)
 
 
Post #: 5
 
 RE: at command not working - 9/15/2005 7:45:45 AM   
  ebgreen


Posts: 5069
Score: 31
Joined: 7/12/2005
Status: online
Unfortunately, this is one of those things that is hard to troubleshoot from a distance. First, I will assume that \\comutername is just where you replaced the actual computername for annonymities sake.

The first thing I would try is using the exact same command line only change the bat file to be a file with one line. In the test bat, put just this:

pause

then see if it actually runs.

(in reply to jiffy999)
 
 
Post #: 6
 
 RE: at command not working - 9/15/2005 7:55:29 AM   
  jiffy999

 

Posts: 66
Score: 0
Joined: 1/22/2005
From:
Status: offline
I think I figured it out I'm using a pushd command in the adobe.bat install and its giving me an access denied. So I'm guessing when schedueling a task via command line it runs the command as a system service? So I'm assuming the system service does not have access to the install path I have in the script.

Anyway around this is there a way to schedule the task to run as a different user via script?

_____________________________

http://www.scriptmob.com
Scripting code, news and resources for network administrators.

(in reply to ebgreen)
 
 
Post #: 7
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> at command not working Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts