Problem with security for psftp session.

  • Thread starter Incorrect filenames in download link.
  • Start date
I

Incorrect filenames in download link.

Hello: I use a W2000+ASP.NET , and I want to execute an external command from
a .NET DLL, the line is something like this:

psftp.exe root172.168.0.108 -pw root -b bat.txt

psftp is a secure ftp console program, and the bat.txt file contains all the
necessary commands to get a file from the server and quit the session.

If I execute this line from a console, everything goes well, connects to the
server, gets the file and return to the console, but I'm trying to do the
same from a DLL or ASPX page in various ways, popen, ` `, exec...

Always is the same, it seems it does nothing, and I'm sure the psftp.exe and
bat.txt files are in the same dir of the script.

Any idea? Thanks in Advance.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,013
Latest member
KatriceSwa

Latest Threads

Top