at HH:MM /interactive cmd /k

  • Thread starter Thread starter Larry Viezel
  • Start date Start date
L

Larry Viezel

I am running this command and setting HH:MM as a minute in the futuer.
The command shows up in the scheduled task list. It kicks off and is
listed as running. But then nothing happens. Am I wrong in assuming
that I should be seeing an interactive command prompt at this point?

Larry.
 
Yes, it works for me. Check Task Manager|Processes to see if cmd.exe is
running.

--

Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect

:
|I am running this command and setting HH:MM as a minute in the futuer.
| The command shows up in the scheduled task list. It kicks off and is
| listed as running. But then nothing happens. Am I wrong in assuming
| that I should be seeing an interactive command prompt at this point?
|
| Larry.
|
 
Larry Viezel said:
I am running this command and setting HH:MM as a minute in the futuer.
The command shows up in the scheduled task list. It kicks off and is
listed as running. But then nothing happens. Am I wrong in assuming
that I should be seeing an interactive command prompt at this point?

Larry.

Tasks scheduled with at.exe run under the System Account in
the background and are therefore invisible.
 
That's what I would have said until I tried it.

--

Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect

:
| Tasks scheduled with at.exe run under the System Account in
| the background and are therefore invisible.
|
|
 
I'm saying the cmd.exe session is visible for me.

--

Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect

:
| Are you saying that I got it wrong? :-[
 
Strange. What account are you using to run the AT Service
account? Control Panel / Task Scheduler / Advanced.
 
Default........ system account

--

Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect

in message
| Strange. What account are you using to run the AT Service
| account? Control Panel / Task Scheduler / Advanced.
 
Jerold Schulman said:
NOT if the /interactive switch is used.

/interactive Allows the job to interact with the desktop of the user
who is logged on at the time the job runs.

Which is what the problem is. The CMD window is NOT showing up for me
with the /interactive switch in there. It is showing up in the
processes list under TaskManager though.

The underlying issue that caused me to go down this route is that I
have a batch file that FTPs files to an external server. When I run it
manually the process works fine. When I run it as part of the scheduled
task the files don't go up. So my options are either get this
/interactive cmd to work or to somehow capture the data in a log of
some sort.

Any help would be appreciated.
Larry.
 
Be aware that AT runs under the system account and won't have permissions to
any network resources. You may want to use Scheduled Tasks where you can
specify the user that has the necessary credentials.

--

Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect

:
| Which is what the problem is. The CMD window is NOT showing up for me
| with the /interactive switch in there. It is showing up in the
| processes list under TaskManager though.
|
| The underlying issue that caused me to go down this route is that I
| have a batch file that FTPs files to an external server. When I run it
| manually the process works fine. When I run it as part of the scheduled
| task the files don't go up. So my options are either get this
| /interactive cmd to work or to somehow capture the data in a log of
| some sort.
|
| Any help would be appreciated.
| Larry.
|
 
Already done. The username and password we are logged in with when we
run the batch file manually is the same one that is specified in the
scheduled task. Except its not working. I tried the /interactive cmd
thing because I found a similar problem mentioned previously in this
usenet group.

So yeah, still at the same spot. Is there a way that I can see exactly
whats happening when my scheduled task is running?
 
What happens if you logon as a new user? (create a new account in 'User and
Passwords'). It might also be the WindowPosition and or WindowSize are off
screen or too small. (HKEY_CURRENT_USER\Console)

http://support.microsoft.com/?kbid=176197

--

Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect

:
| Already done. The username and password we are logged in with when we
| run the batch file manually is the same one that is specified in the
| scheduled task. Except its not working. I tried the /interactive cmd
| thing because I found a similar problem mentioned previously in this
| usenet group.
|
| So yeah, still at the same spot. Is there a way that I can see exactly
| whats happening when my scheduled task is running?
|
 
Larry Viezel said:
Which is what the problem is. The CMD window is NOT showing up for me
with the /interactive switch in there. It is showing up in the
processes list under TaskManager though.

The underlying issue that caused me to go down this route is that I
have a batch file that FTPs files to an external server. When I run it
manually the process works fine. When I run it as part of the scheduled
task the files don't go up. So my options are either get this
/interactive cmd to work or to somehow capture the data in a log of
some sort.

Any help would be appreciated.
Larry.

So why don't you capture your ftp messages? You could
do it like so:

@echo off
echo %date% %time% Start of task > c:\test.log
echo User=%UserName%, Path=%path% >> c:\test.log
ftp -s:c:\ftp.scr ftp.larry.com 1>> c:\test.log 2>c:\test.err
echo %date% %time% End of task > c:\test.log

Now have a look at the two log files and all will become clear!
 
Thats the solution that did it. Turns out that when running as a task
the batch process was getting more files than it was sending.

Thank you so much for all your help.
Larry.
 
Back
Top