ASP, command prompt and FTP

Results 1 to 2 of 2

Thread: ASP, command prompt and FTP

  1. #1
    Join Date
    Dec 1969

    Default ASP, command prompt and FTP

    I have an asp page that creates a txt file that looks like this:<BR><BR>ftp<BR>open<BR>username<BR>password<BR>cd images<BR>cd pdf<BR>put c: extfile.txt<BR>close<BR>quit<BR>exit<BR><BR>I now want to execute this file from the root directory on my web server to run in the command prompt by using asp to do this.<BR><BR>Is there a way to do this? Any examples would help. Thanks!<BR>

  2. #2
    Join Date
    Dec 1969

    Default Shell

    Duno if this works, found it on google somewhere...<BR><BR>&#060;%@ Language=VBScript %&#062;<BR>&#060;%<BR>Set objShell = Server.CreateObject("WScript.Shell")<BR>objShell.R un("your command here")<BR>Set objShell = Nothing<BR>%&#062;<BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts