5 Sep 2011

Creating FTP directory using Powershell


This code below can be used when you want to create  a directory in FTP server.

$makeDirectory = [System.Net.WebRequest]::Create();
$makeDirectory.Credentials = New-Object System.Net.NetworkCredential(,)
$makeDirectory.Method = [System.Net.WebRequestMethods+FTP]::MakeDirectory;
$makeDirectory.GetResponse();

0 comments:

Post a Comment