Category Archives: Cmd scripting

Checking for open ports on other systems

Testing connectivity and port availability using SSH instead of Telnet – Unix & Linux Stack Exchange Windows: Port open: C:\>ssh -p 121 p4-mfgkex_exchange_identification: read: Connection reset Port closed: C:\>ssh -p 120 p4-mfgssh: connect to host p4-mfg port 120: Connection timed … Continue reading

Posted in Cmd scripting, Operational Technology, Security, System/DB Administration | Leave a comment

ForFiles is not For

Today I was surprised to find a new batch command. FORFILES. This is essentially a re-worked FOR command, with a slightly different skew. Whereas FOR is targeted at files or text, FORFILES is exclusively targeted at files. What makes it … Continue reading

Posted in Cmd scripting, FunTimes, Programming | 1 Comment

Open a file via command shell in a friendly fashion

Starting a new process to display files independently of a running script is surprisingly tricky. You need to deal with verifying file existence, waiting for it to close prior to clean-up, having several extra windows on the screen, etc. Here’s … Continue reading

Posted in Cmd scripting, Design and UX, Programming | Leave a comment