views:

143

answers:

2

I need a script that will delete all files from a ftp directory, and then upload a folder on my local machine to that same ftp location. Any ideas?? Thanks in advance

A: 

Powershell doesn't have anything built-in for this, but you could use FtpWebRequest and other related .NET classes to access FTP sites.

If you want a cmdlet, then you could check out NetCmdlets. It appears to be free for personal use.

bobbymcr
any exmples of how to use ftpwebrequest, sorry this is my first day of using powershell
wcpro
Here's a simple example: http://wiki.asp.net/page.aspx/283/ftpwebrequest/
bobbymcr
A: 

This might be a helpful place to start. You are going to need to implement each FTP function you want to use (GetDirectoryList, Upload, Delete) either using native .NET code or using your .NET DLL or client.

GrayWizardx

related questions