Re: at HH:MM /interactive cmd /k
- From: "Pegasus \(MVP\)" <I.can@xxxxxxx>
- Date: Tue, 2 May 2006 08:10:43 +1000
"Larry Viezel" <larryv@xxxxxxxxx> wrote in message
news:1146498353.063182.120200@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
"Jerold Schulman" wrote:user
NOT if the /interactive switch is used.
/interactive Allows the job to interact with the desktop of the
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.
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!
.
- Follow-Ups:
- Re: at HH:MM /interactive cmd /k
- From: Larry Viezel
- Re: at HH:MM /interactive cmd /k
- References:
- Re: at HH:MM /interactive cmd /k
- From: Larry Viezel
- Re: at HH:MM /interactive cmd /k
- Prev by Date: Re: Hard Drive space Windows 2000
- Next by Date: Re: Program Icons Don't Display Properly They have a calculator over t
- Previous by thread: Re: at HH:MM /interactive cmd /k
- Next by thread: Re: at HH:MM /interactive cmd /k
- Index(es):
Relevant Pages
|