News for hackers. Stuff that matters.
Re:My Favorite One Liners by banana_giraffe on Monday May 03, 2021 @09:43AM (#27024971)
For those that don't know "start ." is the Windows version of "open .", opening Explorer in the current folder.

Speaking of Windows, "pushd \\servername\sharename" is a simple way to mount a share in Windows, if you have the login creds cached, and set the new drive letter as your active drive. Useful if you need to bounce around a bunch of shares.

Re:My Favorite One Liners by dgfitz on Monday May 03, 2021 @08:07PM (#27032533)
Oh, I always used: explorer.exe . I didn't know open was aliased to that.
Re:My Favorite One Liners by banana_giraffe on Monday May 03, 2021 @09:52PM (#27033237)
For what it's worth:

It's not "start" is an alias to "explorer", it's that "start" runs the args through "ShellExecute".

I mention this only because it has some other uses. For instance, Windows apps can install run handlers so that something like Start->Run->Excel will launch Excel. Just running "excel" on a command prompt won't work, but "start excel" will work, since that kicks off the right path.

You can also use something like "start /w filename.txt" to start an instance of your editor, and wait for it to close (well, mostly, some apps do weird things and break this)

Re:My Favorite One Liners by samstave on Monday May 03, 2021 @10:24AM (#27025447)
Also, "notepad FILENAME" will open the file in notepad... etc.
Re:My Favorite One Liners by manjana on Monday May 03, 2021 @11:02AM (#27025952)
Also, "vim FILENAME", where Vim is an alias set in $PROFILE that point to the vim executeable.
Re:My Favorite One Liners by RealStickman_ on Monday May 03, 2021 @04:06PM (#27029997)
Note that you don't have to specify an alias for it, if the vim executable is located in your $PATH.