Curt,
I don't have the authority to change the admin account, but I think this
problem may because the script file and the file I want to ftp are not on
the web server itself but on a network share. I am pretty sure that the
ISR_ANON has the access rights to the network share but something about
permissions must be wrong.
If I copy the ftp script to the local server then the result file is now
created but it fails to change folder to \\server\share\folder
Once again it runs OK from a command line prompt.
It must be something related to permissions but which ones?
Thanks again.
Best Regards,
Derek
"Curt_C [MVP]" <software_at_darkfalz.com> wrote in message
news:eC**************@tk2msftngp13.phx.gbl...
Derek Timothy wrote: Curt,
It was worth a try, but sadly I get the same problem
Am I adding permission to the correct account IUSR_ANON?
Best Regards,
Derek
"Curt_C [MVP]" <software_at_darkfalz.com> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...
Derek Timothy wrote:
Hi folks I have strange problem using cmd.exe from asp code
I am trying to save the results of an FTP command into a text file.
When
I
run this command from the command line of the web server it creates the
text
file OK and it contains the results of the FTP commands.
ftp.exe -s:test.ftp > c:\tempfile.txt
However when I run it from asp using cmd.exe, it creates the file
c:\tempfile.txt but there is nothing in it.
set oScript=Server.CreateObject("WSCRIPT.SHELL")
oScript.run("cmd.exe /c ftp.exe -s:test.ftp > c:\tempfile.txt")
Any ideas why?
Thanks a lot,
Derek
just a guess but permission to FTP.EXE?
--
Curt Christianson
site: www.darkfalz.com
blog: blog.darkfalz.com
as a test, try using an admin account as your IIS user...
--
Curt Christianson
site: www.darkfalz.com
blog: blog.darkfalz.com