I am new in powershell, i want to save a file which powershell will automatically create new subfolder in sharepoint 2010 and save it ( the subfolder named should be todayname i.e. 25Oct2012) :
here is the script :
$sharepointsave = "SiteURL+DocumentLibrarypath" + "/" + $today + "/"
New-Item $sharepointsave -type directory -Force
$sharepointpath = "SiteURL+DocumentLibrarypath" + "/" + $today + "/"
$sharepointsave = $sharepointpath + $filename + $today + ".xls"
$b.SaveAs($sharepointsave1)
however, it couldn't create the subfolder ... would you please help
Thanks very much
Best Regards Mary