header
header Register : : Login header
header
divider
menuleft
menuright
submenu
left

[August 25th, 2008] Check the home page regarding PowerShell related news from a brand new sponsor: Idera

Remote Rename Files & Kill Process
Last Post 28 Jul 2008 07:07 PM by Shay. 1 Replies.
Printer Friendly
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
dlisterjrUser is Offline
New Member
New Member
Posts:2
Avatar

--
28 Jul 2008 04:44 PM  

I have a problem. I need to rename files in two directories. In one directory I know all the names of the files and what they need to be renamed to. In the other directory I'm looking for one file HWxxxxxx.acg where the x represents some number or letter. Also I need to check and see if there is a process running, and if it is kill it.

I need to run this all against a remote computer. Is powershell the best way to do this?

ShayUser is Online
Basic Member
Basic Member
Posts:281
Avatar

--
28 Jul 2008 07:07 PM  


What if multiple files return when you search for HWxxxxxx.acg? How would you rename them? The same for the process you want to kill, you can get back multiple process object if you get them by their names (e.g multiple notepads), will you kill'em all?

Shay Levy
Windows PowerShell MVP
http://blogs.microsoft.co.il/blogs/ScriptFanatic
You are not authorized to post a reply.

Active Forums 4.1
right
   
footer Sponsored by Quest Software • SAPIEN Technologies • ShellTools, LLC • Microsoft Windows Server 2008 footer
footer