How to dynamically find the ftp path on my ftp server?


i have access windows server machine, of team accesses through ftp , upload stuff.

i need go folder , copy bunch of filenames matching expression. , need make sure function can used on other windows server machine too.

so using powershell how can find default path of ftp. using iis setting ftp.

in windows explorer can type ftp://localhost access folder.

how access using powershell?

you use ftpwebrequest class of net framework. https://msdn.microsoft.com/en-us/library/system.net.ftpwebrequest(v=vs.110).aspx

look in gallery examples.

you can download psftp module oneget:

find-module psftp


\_(ツ)_/




Windows Server  >  Windows PowerShell



Comments

Popular posts from this blog

Schannel Issue

Indexing Server

oclist /xml or /?