xp_cmdshell and UNC

Results 1 to 2 of 2

Thread: xp_cmdshell and UNC

  1. #1
    Join Date
    Dec 1969

    Default xp_cmdshell and UNC

    I wanted to know of it possible to include a UNC for accessing files on other server like on the following example:<BR><BR>EXEC master..xp_cmdshell &#039;ftp -s:\servernameftpsend.txt &#039;<BR><BR>If I in fact just type in windows explorer \servernameftpsend.txt i can get to the file.<BR><BR>If I use the following example it works fine however this would mean that I have the file on the server that runs this script. Problem with that is my SQL server and IS server are on two separate machines:<BR><BR>EXEC master..xp_cmdshell &#039;ftp -s:c:ftpsend.txt &#039;<BR><BR>Is there potential another way I can FTP a file using the machine where the files sits (IIS) This would eliminate having to use SQL for this service all together<BR>

  2. #2
    Join Date
    Dec 1969

    Default CROSSPOST!


Posting Permissions

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