Reputation
8,913
Top tag
Next privilege 10,000 Rep.
Access moderator tools
Badges
5 41 81
Impact
~1.5m people reached

Apr
13
comment How to go to a program directory?
Out of interest, is there a reason for your preference in using usebackq? (as opposed to not doing usebackq, and using single quotes).
Apr
13
comment How to go to a program directory?
@DavidPostill thanks.
Apr
13
revised Building a VPN “Bridge”
edited title
Apr
13
comment configuring port forwarding on multiple routers
@Jason i'd be interested, what are the technical differences between connecting two routers WAN-WAN vs LAN-LAN?
Apr
13
comment What reason might all browsers except Chrome take AGES to launch
re your title, how about low profile browsers, like "off by one" or maybe k-meleon?
Apr
13
revised Low resource Firewall/Anti-Virus for older XP machines?
edited title
Apr
13
comment Low resource Firewall/Anti-Virus for older XP machines?
maybe this could be in software recommendations?
Apr
13
comment How to go to a program directory?
@PHPst but anyhow, the primary reason for the complexity. and most of the complexity, is the big for line, and that's because as mentioned, CMD doesn't support anything like cd 'command' and its alternative (for) is a rather laborious exercise in absurdity in length and uglyness and some trickyness. 'For' has a number of uses, it's a weird thing.
Apr
13
comment How to go to a program directory?
@GuitarPicker that is very interesting, but could you clarify how you get that $PATH line to work with %1 see pastebin.com/raw.php?i=HEviVCLm where it doesn't work with %1 so how did you get it to work?
Apr
13
comment How to go to a program directory?
@PHPst It'd be ideal if CMD supported something like CD expand(where git) But it doesn't, and CMD instead has this very long command that can be used to set a variable to the output of a command. for /f %f in ('echo abc') do set a=%f But you don't want CD blah\bleh\git.exe that won't work So if you have David's for line, and after the 'do' you put cd %~dpa then it does CD to just the path.. and cd /d just makes cd work better, so if the path is on a different drive/partition then the cd will still work. If you do cd z:\blah it won't work unless you do cd /d z:\blah
Apr
13
comment How to go to a program directory?
@DavidPostill You can improve that do cd /d %~dpa but the combination you have %~da && cd %~dpa is good and interesting.
Apr
13
comment Cygwin not reading config file
Let us continue this discussion in chat.
Apr
13
comment Using ssh on cygwin fails with no error, but not from DOS or OSX
You write "Cygwin's ssh does create a .ssh directory" <--- Maybe Cygwin ssh might not necessarily create .ssh by default, though always trivial to mkdir it. Though I note that in your test it did. And I think ssh can run fine without the directory so I don't think it's relevant particularly if he has no .ssh directory and no known_hosts file
Apr
13
comment Using ssh on cygwin fails with no error, but not from DOS or OSX
You write "If I recall correctly, your home directory is set to be C:\Documents and Settings*username*. The .ssh directory should be under there" <----- Nope. or at least not necessarily. I am on an XP machine right now and I see c:\cygwin\home\username And any .ssh would be within that. c:\cygwin\home\username\.ssh I've never had it anywhere else. For Win7 too. c:\cygwin\home\....
Apr
13
comment Using ssh on cygwin fails with no error, but not from DOS or OSX
You write "Cygwin's ssh does create a .ssh directory" <--- Maybe Cygwin ssh might not necessarily create .ssh by default, though always trivial to mkdir it. Though I note that in your test it did.
Apr
13
comment Using ssh on cygwin fails with no error, but not from DOS or OSX
what do you mean from DOS, how are you doing ssh from DOS, how are you doing DOS (if you even mean DOS)
Apr
13
comment Cygwin not reading config file
Have you checked the old installation for a file or folder named aws? What if you do ls aw<tab> Does ssh aw<tab> produce aws, and ls aw<tab> not? Really you should try and think about this from the perspective of a computer, how what you want would work. If it did happen it'd obviously not be a built in feature. Do you seriously think that shell autocompetion is looking for ssh on the command line and doing a special autocomplete reading ssh's config file. Unless you have manually written or added a script for the shell to do that like the thing you link to. might do
Apr
13
comment Cygwin not reading config file
Cygwin aside, does that even happen in linux? That tab autocomplete would check the ssh config file for autocompletion?! Also, did you mean HostName to be on a new line?(I edited your question to put HostName xx.xx.xx.xx on a new line). Maybe your old installation had a file called aws?!(so when you typed aw and pushed tab it autocompleted to aws) I cannot imagine tab autocompletion in the shell to check the ssh config file.
Apr
13
revised Cygwin not reading config file
corrected formatting
Apr
12
comment Windows XP emachine keeps restarting continously
If you can't boot from USB or CD, then then that is a fundamental issue you have that has nothing to do with XP. And when you can boot from CD then do a repair installation off an XP CD making sure the service pack matches. It may be worth stating the model of your computer and motherboard, in case others have had the issue.