Re: at HH:MM /interactive cmd /k

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance




"Larry Viezel" <larryv@xxxxxxxxx> wrote in message
news:1146498353.063182.120200@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
"Jerold Schulman" wrote:
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.


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!


.



Relevant Pages

  • Re: at HH:MM /interactive cmd /k
    ... "Jerold Schulman" wrote: ... /interactive Allows the job to interact with the desktop of the user ... The CMD window is NOT showing up for me ...
    (microsoft.public.win2000.general)
  • Re: batch file echo something>a_file.txt displays echo something 1>a_file.txt -- wth??
    ... echo anything>somefile.txt ... just showing up in the cmd window. ... "2" is stderr, so you can redirect error messages (in programs that print ...
    (alt.os.windows-xp)
  • Re: Movie file became corrupted
    ... I keep trying to paste the info that I got back from my CMD window but its ... not showing up on here ... > obtained by publishing in any format other peoples work ...
    (microsoft.public.windowsxp.moviemaker)
  • Re: Pack & Go for Sound: HELP!!!
    ... yes as a separate file...theres also a file called "playlist" that keeps ... "Echo S" wrote: ... > presenter, PPT Live '04 ...
    (microsoft.public.powerpoint)