1,066 reputation
47
bio website hypftier.de
location Germany
age 29
visits member for 4 years, 11 months
seen yesterday

Software developer at yWorks GmbH.

Usually I'll answer questions here about Java, C#, PowerShell, batch files, random numbers, regular expressions and Unicode. At work I primarily deal with C++, C#, PHP and a few other things.

My interests are mostly HCI, Interaction Design and UX. Recently I18n joined that list as well. That does not mean I have profound knowledge in either of those fields, just that I am interested in them.

Note: People contacting me outside SO/SE is fine, but for discussing their own questions or answers SO already provides a mechanism, namely edits and comments. So please use those things first.
I do hang around on Freenode as Hypftier, though.


Nov
9
comment .bat files to find all files on drive bigger than X
You've given the code snippet | foreach-object{ //dosomething } which – for PowerShell – might read | foreach-object{ <# dosomething #> }. At least I thought it to be customary to use the language's own comment marker for such things ;)
Nov
9
revised .bat files to find all files on drive bigger than X
added 3 characters in body
Nov
9
comment .bat files to find all files on drive bigger than X
Besides, you may want to use an actual PowerShell comment instead of a C++ one ;-)
Nov
9
answered .bat files to find all files on drive bigger than X
Oct
25
comment Powershell; pipe stdout to commandline
Ah, sorry; skimmed the question a bit too shallowly. Agreed, then it's a quite dangerous thing to do. You could perhaps read the file, tokenize the contents and build a hashmap from it. After that you can use the splat operator (provided you're on PS2) to explicitly only use them as arguments to gci, negating the option to inject other commands (at least as far as I can see now).
Oct
20
comment How to use a config file (ini, conf,…) with a Powershell Script ? Is it possible?
You can handle comments easily by just adding another case to the switch with '^#' {}. Also you can access hashtable contents with a dot as well, so $links.vendors.link1 should work too which might be a little better to read.
Aug
22
comment How to send the current working directory as an argument in windows?
This isn't an environment variable; it's merely a "pseudo-variable". Whenever you use those, keep in mind to delete an actual variable of that name before as their magic doesn't work when a variable with that name exists.
Aug
13
answered Is it possible to insert a timed pause into batch files?
Aug
6
revised Batch File help needed for PsList/PsKill when a process is over a specific age (elapsed time)
added 156 characters in body
Aug
5
answered Batch File help needed for PsList/PsKill when a process is over a specific age (elapsed time)
Aug
2
comment How to launch PowerShell script from the OS command line?
If said file manager is Far, then you can trivially change what runs when pressing enter on a .ps1 file.
Aug
2
comment How to launch PowerShell script from the OS command line?
Note that there are good reasons that this is not the default setting.
Jul
24
comment Powershell - can I avoid typing .\ if I want to execute something from the current folder?
There are also some nice 3rd party tab completion things that may make this interaction nicer.
Jul
19
awarded  Yearling
Jul
14
answered Powershell Switch statement with multiple values
Jul
13
comment SQL, pl/sql, sqlplus: how to return a variable to DOS batch file?
weji: It's not a DOS batch file unless you happen to run it in command.com. cmd.exe uses a superficially similar syntax but is much more powerful with many extensions. They are not the same and somewhere a kitten dies every time someone calls Windows batch files DOS batch files.
Jul
13
comment SQL, pl/sql, sqlplus: how to return a variable to DOS batch file?
Note that this is not DOS. I'd edit your post if I had sufficient rep.
Jul
3
comment How to make Batch-file automatically stop on error
Ah, well that syntax errors cause malfunction is hardly unexpected, isn't it? ;-)
Jun
28
comment How can I run a command window hidden or minimised?
Taken a look at Start-Process?
Jun
27
comment How can I run a command window hidden or minimised?
Why do you even run a PowerShell script by calling cmd which then starts PowerShell? That sounds like at least two levels of indirection too much.