# Tag Info

271

Create a shortcut to your batch file. Get into shortcut property and change target to something like: cmd.exe /C "path-to-your-batch". Simply drag your new shortcut to the taskbar. It should now be pinnable.

81

Activate the autocd option. It will let you type .. for cd .. and will actually let you use any directory as a command name and will cd to it: shopt -s autocd For the curious, the same exists for zsh: setopt auto_cd

80

There are 156 run commands at this website. Here is a more complete list including the Windows Environment Commands e.g. %temp% %HomeDrive% etc e.g. %ALLUSERSPROFILE% - Open the All User's Profile %HomeDrive% - Opens your home drive e.g. C:\ %UserProfile% - Opens you User's Profile %temp% Opens - temporary file Folder %systemroot% - Opens Windows folder ...

73

The bash, zsh Shells If you don't want another function to remember and don't mind bashisms: $mkdir /home/foo/doc/bar && cd$_ The $_ (dollar underscore) bash command variable contains the most recent parameter. So if a user were to type the following at the command line: echo foo bar && echo$_ baz, then the output would be as follows: ...

66

Not by default (There might be some exceptions to this), there isn't. But if you use the alias command you can create a shortcut like this: alias ..="cd .." This will allow you to use the command .. to do cd ...

62

Have you tried "c:\path\to\exe\program.exe" -option1 -option2 Only the program path and name need to be enclosed in quotes.

61

Save the following as wscript, for instance, hidecmd.vbs after replacing "testing.bat" with your batch file's name. Set oShell = CreateObject ("Wscript.Shell") Dim strArgs strArgs = "cmd /c testing.bat" oShell.Run strArgs, 0, false The second parameter of oShell.Run is intWindowStyle value indicating the appearance of the program's window and zero value ...

61

The W in Ctrl+W was chosen because previous to tabbed browsing being introduced (and currently, if you have tabbed browsing disabled) it's a shortcut to Close the Current Window. Keyboard Shortcuts for Internet Explorer 6: Close the current window - Ctrl+W Keyboard Shortcuts for Internet Explorer 8: Close current tab (or the current window if ...

55

The most *NIX-y answer is to use SSH's features to your advantage. Create a file named config in ~/.ssh/ (a folder named .ssh in your home folder). Add an entry for each computer you want to connect to, like this: Host compy HostName 98.256.211.12 Port 90 User sidney IdentityFile ~/.ssh/my_rsa_key HostName can be either an IP address or ...

43

Windows: Switch between worksheets: CtrlPgDn or CtrlPgUp Switch between workbooks: CtrlTab or CtrlShiftTab OS X: Switch between worksheets: FnCtrl↓ or FnCtrl↑ on a small keyboard Ctrl⇞ or Ctrl⇟ on a keyboard with numpad Switch between workbooks: CtrlTab

42

I find this useful: up() { local p= i=${1:-1}; while (( i-- )); do p+=../; done; cd "$p$2" && pwd; } For example, up 4 = cd ../../../.. As a bonus, up 4/path/to/file works in a similar way to ../../../../path/to/file. 38 There is some very useful information on this site: http://ss64.com/nt/shortcut.html Seems like there is some shortcut.exe in some resource kit which I don't have. As many other sites mention, there is no built-in way to do it from a batch file. But you can do it from a VB script: Optional sections in the VBscript below are commented out: Set oWS = ... 37 I think the important point is that shortcuts are just a file. They have a size (A small one, that just references where they point) and they require an application to support that filetype in order to be used. A symbolic link is filesystem level, and everything sees it as the original file. An application needs no special support to use a symbolic link. 34 This thread nearly answers my problem, another thread worth reading that solves these issues in a different way is here:Adding Batch Files to Windows 7 Taskbar like the Vista/XP Quick Launch I was able to add a batchfile to the taskbar by the following steps: Renaming your .cmd/.bat to to .exe Right clicking on the *.exe and choose pin to taskbar Renaming ... 34 There are a few easy ways to do it. Use C-b ' to select the window index. Use C-b w to get an interactive index to choose from (0-9a-z). Add bindings to cycle through quickly in tmux.conf bind -r C-h select-window -t :- bind -r C-l select-window -t :+ The -r in the last one lets you repeat the key without having to repeat C-b. Typically the second one ... 32 Open Explorer (Windows Logo + E) then type "Recycle bin" in the address bar. That should work just fine, else add Recycle bin to your favorite locations in Exlorer. Or press the Windows logo and type: explorer.exe ::{645FF040-5081-101B-9F08-00AA002F954E} Which you can of course assign a hot-key to any arbitrary keyboard key or key combination. 30 Open a CMD prompt and type this in to see a complete list of the environmental variables (eg. %TEMP%) on your system: set You can also use this list to open special locations in Explorer, using the Start Menu search box. 30 From the Putty FAQ: To run a PuTTY session saved under the name ‘mysession’, create a Windows shortcut that invokes PuTTY with a command line like \path\name\to\putty.exe -load "mysession" ---EDIT--- In Windows 7, the shortcut has to be in quotes like this: "\path\name\to\putty.exe" -load "mysession" 29 I'm no Linux/bash expert, but try putting this in your .bashrc. function mkdir { command mkdir$1 && cd $1 } PS Thanks to Dennis for using command mkdir. 28 (When the application is closed) hold Shift + Right Click > Properties 27 Click on the Start menu and type (or type the same in a command-line window, CMD.EXE): devmgmt.msc Or you can just type Device Manager and it should come up. 26 This is just a simplification of Shaji's answer. You can run your batch script through a VBScript (.vbs) script like this: 'HideBat.vbs CreateObject("Wscript.Shell").Run "your_batch_file.bat", 0, True This will execute your batch file with no command window shown. 25 All Modern UI apps have a URL protocol associated with them which can be used to launch the app. You can find find the protocol for a specific app like this: Press Windows+R Type regedit Navigate to HKEY_CLASSES_ROOT\Extensions\ContractId\Windows.Protocol\PackageId Find the subkey for your app (eg, AMZNMobileLLC.KindleforWindows8_1.1.0.... 24 As you edited - Any users start menu is located at: C:\Users\USER-NAME\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\ So for your example, it would be: C:\Users\Administrator\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\ And the Global / All users Start Menu is located at: C:\ProgramData\Microsoft\Windows\Start Menu\Programs ... 24 Linux has two types of links: .desktop files: created by graphical file managers. They are similar to Windows .lnk shortcuts, minus the automatic updating. They, like shortcuts, only work inside the GUI file manager program. Symbolic links: created with ln -s target link on Linux and mklink link target on Windows. These can be used transparently by any ... 24 This isn't specifically a mac question, this is really a vi question. In navigation mode, ctrl-f scrolls down a page and ctrl-b scrolls up a page (think "F"orward and "B"ack). Ctrl-d scrolls down half a page, and ctrl-u scrolls up half a page. ^ takes you to the beginning of a line, and$ to the end. I know, I know, but there are historical reasons for ...

21

Follow these steps to save the Registry code below into a .reg file then import it into the Registry: Open Notepad Copy and paste the Registry code below into the Notepad window Save the file to your Desktop with the name fixshortcuts.reg On your Desktop open fixshortcuts.reg and merge the file into the Registry Log off and back on to make the changes ...

20

Get AutoHotKey. Open Notepad and paste the following: ^q::Send !{F4} return Save it as an .ahk file, run it and try it out. If it works, stick it in your startup folder and you are good to go. The above code simply maps Ctrl + Q to Alt + F4. If you want it to be Alt + Q, then replace the ^ with a ! If you can't get AutoHotKey, I've compiled the above ...

20

Most shells support what is known as "Tab Completion". Just type the unique part of the filename, and then hit your Tab key. The shell should auto-complete the rest of the filename for you. If there are still multiple files which match what you've typed so far, the shell will either cycle through the matching files as you hit Tab, or will print a list of all ...

20

You can use this utility: Relative. It basically creates a shortcut to "explorer.exe" with the parameter of your relative path with a right click (same way as you create a normal shortcut). Of course you can do this manually. In your example you would create a shortcut in "New Files\Tools" to %windir%\explorer.exe "..\..\Tested Files\Tools" You can use ...

Only top voted, non community-wiki answers of a minimum length are eligible