Re: FTP delete problem



look at the ftp command, turn on verbose mode
then redirect the output to a text file via the '>' method

e.g. c:\>dir *.* > output.txt



--
Regards,
Bernard Cheah
http://www.iis.net/
http://www.iis-resources.com/
http://msmvps.com/blogs/bernard/


"fabio" <fabio.cecaro@xxxxxxxxxxx> wrote in message
news:%23G6x1t%23oGHA.1440@xxxxxxxxxxxxxxxxxxxxxxx
How i can save the output of FTP command?
If i am in session in the server the scheduled script result OK.
But in automated state scheduled the files that i get don't delete.

In my script i make a txt file with a sequence of command :
logon,lcd,get and delete, by wscript.shell.run

In this mode i try to print the output in the other files, but nothing to
do.

I don't know the error,
the ftp command save the status in temp files that i don't know?

Thanks


"Bernard Cheah [MVP]" <qbernard@xxxxxxxxxxxxxxxxxxx> ha scritto nel
messaggio news:eVTV918oGHA.3288@xxxxxxxxxxxxxxxxxxxxxxx
Strange indeed. was it error 550 in the status code?
Sound like ftp cache issue to me, but it works in manual mode :(

is it always failed to delete the log?

--
Regards,
Bernard Cheah
http://www.iis.net/
http://www.iis-resources.com/
http://msmvps.com/blogs/bernard/


"fabio" <fabio.cecaro@xxxxxxxxxxx> wrote in message
news:OZ7S6ZloGHA.4912@xxxxxxxxxxxxxxxxxxxxxxx
I have made a script in server A that make ftp connection to server B,
Get a file and Delete it after.
Well, in this script i have insert username,password of local account of
server B
that have read/write/delete access in the directory that i need.
This script is scheduled every day (i download the day before IIS
logfile to another server)
and it Get without problem, but don't Delete log file, strangely if i
run manually this script,
the Delete problem have resolved.
There is problem in windows 2003 ftp server or in the credentials of
script scheduled?
Please Help Me.







.



Relevant Pages

  • Re: FTP delete problem
    ... How i can save the output of FTP command? ... If i am in session in the server the scheduled script result OK. ... and it Get without problem, but don't Delete log file, strangely if i run ...
    (microsoft.public.inetserver.iis.ftp)
  • Re: HTTP/1.1 400 Bad Request From anything but IE/PC
    ... I'm not sure about 'script' a form post, ... Have your verify this server settings with those that working? ... >>Bernard Cheah ... >>> URLScan has been completely removed. ...
    (microsoft.public.inetserver.iis.security)
  • Re: FTP delete problem
    ... Bernard Cheah ha scritto: ... If i am in session in the server the scheduled script result OK. ... Sound like ftp cache issue to me, but it works in manual mode:( ...
    (microsoft.public.inetserver.iis.ftp)
  • Re: Same Internal Server Error from last two days
    ... I am trying to run a Hello World Perl Script in Apache 2.2. ... But its constantly giving me Internal Server Error.The script ... # have to place corresponding `LoadModule' lines at this location so the ...
    (perl.beginners)
  • Re: Same Internal Server Error from last two days
    ... I am trying to run a Hello World Perl Script in Apache 2.2. ... But its constantly giving me Internal Server Error.The script Runs perfectly fine from the command prompt. ... # This is the main Apache HTTP server configuration file. ... LoadModule actions_module modules/mod_actions.so ...
    (perl.beginners)

Loading