|
adaz, thanks for all the example scripts; may I steal them? Also, I would suggest adding Windows Powershell in Action &mdash it's a pretty good book written by someone from the inside. I've written several PowerShell articles; here are a few that are probably more interesting:
|
# ¿ Apr 17, 2010 05:53 |
|
|
# ¿ Apr 28, 2024 07:48 |
|
You should know about Powershell Pipeline Performance. Other than that, Powershell's string escaping mechanism is not weird, and echo is no longer special.
|
# ¿ May 20, 2010 00:45 |
|
Yes you can; you can use the System.Diagnostics.Proccess class, and/or P/Invoke. Do you need the Win32 APIs for doing what you want to do? (I would first check out the Process class to see how much you can do with that.)
|
# ¿ May 24, 2010 23:17 |
|
Someone earlier in this thread said you have to Format-Table nothing or everything, but not half-and-half.
|
# ¿ Oct 14, 2010 20:08 |
|
Walked: Tee-Object
Victor fucked around with this message at 00:14 on Oct 19, 2010 |
# ¿ Oct 19, 2010 00:12 |
|
Walked, you might look for PowerShell equivalents for runas, or just use runas. (run as)
|
# ¿ Oct 22, 2010 21:46 |
|
Ryouga Inverse, try this:code:
Your > new.prf may have caused a bunch of NULLs because it was trying to output Unicode; read up on $OutputEncoding.
|
# ¿ Oct 27, 2010 06:31 |
|
Get-ChildItem -Recurse | ? { $_ -is [System.IO.DirectoryInfo] }
|
# ¿ Nov 1, 2010 09:41 |
|
This should do ya:code:
|
# ¿ Nov 1, 2010 11:05 |
|
|
# ¿ Apr 28, 2024 07:48 |
|
marketingman posted:Mate you are a lifesaver, that's done the trick nicely. If you have some time, would you mind explaining what each piece is doing, it seems like something I should have been able to quickly get my head around but for some reason haven't. code:
? is the same as Where-Object % is the same as Foreach-Object
|
# ¿ Nov 1, 2010 19:00 |