Mats codemix

Mats codemix

A little c#, a litte .NET and throw in some c++ and you get a nice Spaghetti

Mats codemix RSS Feed
 
 
 
 

Posts tagged Powershell

Calling 7-Zip from powershell

I had to write a little utility-script to backup and restore some files used for testdata. First i tried a commandline plugin for IZarc which seemed to select the wrong set of files…
I decided to use 7-Zip after reading this post:John Robbins blog which helped me with the -o option.
What i struggled with was how [...]

Testing geshi

Use Geshi (wp-syntax)
Below should be nice looking colour coded pwoershell code

# Remember to write pre lang="powershell" NOT posh or something other cryptic….
Add-Content powershell
Add-History

End of Geshi example

Powershell-script to find files not having specified text

I had the need to find files “not containing” a certain text. I scanned the web and found all and nothing. a few dedicated search tools and editors (some payware and some free). Since i use powershell a lot in my work i wanted to use that environment.  Finding a file based on a ceratin [...]