Hello,
I’m trying to make a powershell script that will copy files to and FTP server, but the destination folder needs to be generated each time the copy starts. In lieu of having a ton of issues trying to copy the source folder onto a remote FTP site using powershell, I thought of maybe just adding a piece to my shell script which will pre-create a folder with a specific name before starting the file copy. This way, the files will have a place to go besides the root share on the FTP server. I'm able to connect to the FTP site and manually use the makedir command, but articulating that into a script is proving troublesome.
Does anyone have an example of a simple powershell script that will create a folder on an FTP directory?