Re: at HH:MM /interactive cmd /k




"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: 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: Expect: How to define a standard procedure for logins
    ... Patrick Dunnigan wrote: ... use log_user 0 to hide the password from showing in your log ... Since the router will not echo the password back, ...
    (comp.lang.tcl)
  • 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)
  • Re: Reading from file
    ... $content = fread ); ... echo; ... But in file news.txt I have formating that is not showing, ...
    (alt.php)