create a custom sendto item to process files... with powershell...

May 18, 09

in reply to dennis’ comment on my last post on this little thing (, here’s the way to do this with powershell

  • make sure you have powershell installed and working
  • create script somewhere with text: foreach ($i in $args) {move-item $i $i.Replace(".mod", ".mpeg")}
  • create a shortcut in the sendto folder that has the command of [pathtopowershell.exe] -noexit [pathtoscript]
  • enjoy!

i was only renaming certain files to certain other files (MOD to MPEG), but obviously you can customize this however you see fit. i had my batch before set not to exit so i could see what was up, but you could take out the -noexit if you wanted it to just run and bail. powershell definitely is more powerful, but IMO still a huge pain for most stuff i would use it for. if most admins invested the amount of time it would take to ramp up using powershell into learning existing tools, they probably wouldn’t need it. i’m definitely enjoying playing with it though. here are some references i used:–literalpath.aspx