384 reputation
1724
bio website stackexchange.com/users/…
location England
age 38
visits member for 2 years, 2 months
seen Dec 1 at 14:13

profile for SteB on Stack Exchange, a network of free, community-driven Q&A sites
Disclaimer: I like to wait at least an hour before accepting an answer.

Software developer, sci-fi and film/TV fan working on LOB apps using Delphi, T-SQL, PHP, HTML, CSS and Powershell.

I like to relax with good films, TV or books including: The Matrix, Underworld, Stargate, Buffy, The West Wing, and works by Joss Whedon, Ridley Scott, David Weber or Peter F. Hamilton.

In my spare time I assist with the browser-based football game Football Glory.


Dec
10
comment Zipping only files using powershell
That looked good, but when I tried it nothing happened. I didn't get a zip file but I also didn't get any errors. Could you expand on what the Set-Content and ReadOnly = false lines do?
Dec
7
comment Zipping only files using powershell
@MDMarra - that works great, thanks. I've just realised that .Net 4.5 isn't supported on Server 2003! I might try calling a zip utility from the command-line, thanks for all your efforts.
Dec
7
comment Zipping only files using powershell
@MDMarra - Only up to 4, I'll install 4.5 and try again, thanks
Dec
7
comment Zipping only files using powershell
@MDMarra - I now get a "make sure that the assembly containing this type is loaded." error, I've tried "[System.AppDomain]::CurrentDomain.GetAssemblies()" but can't see a compression dll
Dec
7
awarded  Commentator
Dec
7
comment Zipping only files using powershell
@MDMarra - Yes, powershell 3 (developed on Win7, deployed on Server 2003), isn't that what the "-com shell.application" does? Or have I messed that up?
Dec
7
asked Zipping only files using powershell
Dec
1
awarded  Vox Populi
Dec
1
awarded  Suffrage
Dec
1
awarded  Critic
Nov
28
awarded  Autobiographer
Nov
23
accepted Security Group vs Distribution Group
Nov
23
asked Security Group vs Distribution Group
Nov
2
accepted Powershell delete files only from directory
Nov
2
revised Powershell delete files only from directory
Added example for deleting (actual question asked)
Nov
2
suggested approved edit on Powershell delete files only from directory
Nov
2
comment Powershell delete files only from directory
This works (only delete files from specified directory, ignoring sub-dirs): Remove-Item "D:\MyTemp\*.*" | Where { ! $_.PSIsContainer }
Nov
2
comment Powershell delete files only from directory
This only lists file in the current directory
Nov
2
revised Powershell Directory.Name return the trailing separator?
Added recurse example of Remove-Item
Nov
2
asked Powershell delete files only from directory