Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.

Windows 7: Can powershell replace win-bash?

14 Apr 2011   #1

Windows 7 home 64-bit
Can powershell replace win-bash?

I have been playing around with an industrial Linux-powered scanner, and was making okay progress under XP.

This was made easier as I just ran some of the bash scripts through win-bash.

Since moving to Windows 7 of course this no longer works, even if I disable UAC completely.

I can only guess that the reason is that win-bash no longer works with Windows 7.

My question is will powershell fill the gap?

i.e. if this is my win-bash script what would the powershell equivalent look like, or am I barking up the wrong tree?

echo !TC | C:/win-bash/nc 80 > ScanFile.dta

p.s. nc = netcat and I know I need an alternative sooner rather than later :)

Very many thanks in advance


My System SpecsSystem Spec
14 Apr 2011   #2

Windows 7 Professional x64 Backtrack 4 R2

Honestly i'm not sure if it will, have you tried using cygwin-bash instead?
My System SpecsSystem Spec
15 Apr 2011   #3

Windows 7 home 64-bit

Not tried it yet, but I shall indeed look into it.

Many thanks

My System SpecsSystem Spec


 Can powershell replace win-bash?

Thread Tools

Similar help and support threads
Thread Forum
BSOD when Git Bash is started
So, this is a strange problem I'm facing these days. My OS is extremely stable except when I try to get Git to work. I don't remember exactly when this problem started but I did have git for windows installed since quite a while and I think this has been a recent occurrence (last 2-3 months) ...
BSOD Help and Support
Bash Scripting for holding command line open
Hi I'm not sure if I posted this in the right forum for this question but im going to ask anyway. I am new at the whole bash scripting thing, but long story short i was wondering if there was a way to keep the CMD window open while it is doing its command, what I am trying to ask is if there is...
Performance & Maintenance
It only took a day for Apple to bash Windows 7
I don't have a link but Apple has already started bashing Windows 7 with its familiar PC and Mac Guy commercial *EDIT* Here you go... <object width="560" height="340"><param name="movie" value=""></param><param name="allowFullScreen"...
Chillout Room

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 18:21.
Twitter Facebook Google+