Tag Info

Hot answers tagged

136

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.


79

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


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 ...


55

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 ...


41

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.


39

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 reference is here http://msdn.microsoft.com/en-us/library/d5fk67ky.aspx


38

By default, if you are using the C# default profile, you can delete a line using Ctrl + Shift + L. You can customize this using Tools->Customize. Select "Keyboard". Look for the command Edit.LineDelete to assign it to whichever keyboard shortcut you like.


38

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 ...


31

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 HostName can be either an IP address or an actual hostname. Then, to ...


25

(When the application is closed) hold Shift + Right Click > Properties


23

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, ...


22

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 ...


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

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: foo bar bar baz


20

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.


19

Save the following into a .reg file, import it into the registry, then log off and back on again. Windows Registry Editor Version 5.00 ;LNK file association fix for Windows Vista. ;Updated on April 24, 2007 [HKEY_CLASSES_ROOT\.lnk] @="lnkfile" [HKEY_CLASSES_ROOT\.lnk\ShellEx] [HKEY_CLASSES_ROOT\.lnk\ShellEx\{000214EE-0000-0000-C000-000000000046}] ...


18

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


18

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 = ...


17

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.


16

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.


16

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.


16

I've tried this and it works for me on Windows 8.1: Opening LNK files in Notepad: Just drag and drop them into the Notepad window. If you open them from the Open dialog, Notepad will open the EXE file pointed to by the LNK file. Opening LNK files in HxD hex editor: Open them as you would any file using the Open dialog (File → Open) Opening LNK ...


15

After doing a bind '"\eu":"cd ..\C-m"' you can cd .. by pressing Alt-u. I used to use this on chdir championships ;-) If you want the whole swift-chdir suite ALT+u cd .. ALT+n enter next dir for selection ALT+p enter previous dir for selection ALT+SPC choose selected dir ALT+l list subdirectories and highlight selection just include this in your ...


15

There is not currently a keyboard shortcut to duplicate a tab in Google Chrome (see a list of keyboard shortcuts). However, it looks like Chrome may soon enable support for extensions to duplicate tabs, which means you might soon be able to find a Chrome extension that can duplicate a tab through a keyboard shortcut. Currently, all of the extensions that ...


15

Linux doesn't work with file extensions. However, you can make a shortcut on Linux using "symbolic links". They are something like a "pointer" to a file. Take a look at here to see how to do it: How do I create a symbolic link? ln -s [TARGET DIRECTORY OR FILE] ./[SHORTCUT] For example: ln -s /usr/local/apache/logs ./logs


15

There's a simple registry hack you can do for this, which I've provided a downloadable reg hack file for. It says Vista, but it should work across the board. Remove "Shortcut" Text From New Shortcuts in Vista


15

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 ...


14

You could make a shortcut to IE and pass it the URL like this: "C:\Program Files\Internet Explorer\iexplore.exe" http://www.example.com You could also use the IE View plugin.


14

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 ...


14

Right-click > New > Shortcut For Target, type "runas /user:domain\user program.exe" I think you can replace "domain" with the computer name if you want it to use a local account. http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/windows_security_runas_shortcut.mspx?mfr=true The link above is for XP, but I was able to do this ...



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