Showing posts with label Windows. Show all posts
Showing posts with label Windows. Show all posts

Friday, 14 March 2014

Windows Kill

Windows Command to kill Application

Short but Sweet:

taskkill -F -IM csgo*

This will kill any application that starts with csgo.

-F Force Kill

-IM Task Name

csgo can be replaced with google* notepad*

Short Cuts can be to run this from Win+R or "Run"

#bearMan

Friday, 24 January 2014

Windows: Terminal

Customizing your Windows Command Prompt


Hate it when you go into terminal and you have this?

Or worse of f


How to make your cmd a little more “customized” and get your Friends to go wow.

All you need to do is type

Prompt  $A
Or My Favorite

Prompt $G

$H is also nice

Something easy to do J

Command
Affect
$A
& (Ampersand)
$B
| (pipe)
$C
( (Left parenthesis)
$D
Current date
$E
Escape code (ASCII code 27)
$F
) (Right parenthesis)
$G
> (greater-than sign)
$H
Backspace (erases previous character)
$L
< (less-than sign)
$N
Current drive
$P
Current drive and path
$Q
#NAME?
$S
  (space)
$T
Current Time
$V
Windows version number
$_
Carriage return and linefeed
$$
$ (dollar sign)


#bearMan

Wednesday, 15 January 2014

Windows: Setting Up Oracle XEr2 Windows 8.1

Step by step Guide to install Oracle XE on Windows 8.


I Will be assuming you have the installer and have Extracted it.

Note this is a fairly Standard Install,

Step 1:
Run the install, it will extract, decompress the install Files and then prepare for the install




Step 2:
Welcome Page, Click Next

Step 3:
Accept License Agreement


Browse where you want to install Oracle XE.
If you want you can change the install Path.

Step 4:
Enter SYSDBA password


I usually Make this “sys” as I don’t use the Database for anything other than Dev.

Click Next

Step 5:
Summary and Click Install.


The Biggest things to take note of are the ports:
Port for 'Oracle Database Listener': 1521
Port for 'Oracle Services for Microsoft Transaction Server': 2030
Port for 'Oracle HTTP Listener': 8080

The two Most Important are Port 1521 and 8080.

Step 6:
Installing Process:

Note there may be errors if they are:

Or


You can ignore them. They will not affect any part of the database.        

Well Done, the database will be configuring itself. (This may take a while)



Enjoy your new install of Oracle XE

#bearMan

Friday, 6 December 2013

Windows: Run A Little More Advanced

Run A Little More Advanced

Do you ever need more than one piece of information, when you run?

Run Window

Do you ever want to run more than one command? Wither it be setting the title of the Terminal Window, or using the pause command?
Here is the trick!
Run the commands between &&

For example
cmd /k title ipconfig /all && ipconfig /all

This will set the title of the terminal window with the ipconfig \all and then run ipconfig \all

cmd /k @ECHO OFF && ipconfig && echo User Name: %username%

This will turn off echo, print ipconfig and then the username.



#bearMan

Thursday, 5 December 2013

Windows: Grep Alternative

Grep - Things I think every Windows User should know

So I have just come from Linux to windows after running linux for a few months, and the one this I really missed was grep.

SO I found the alternative: findstr

findstr uses regex to search.

Here is an example I used:
tree | findstr /R /C:"Intel"

Regards
the #bearMan

Wednesday, 4 December 2013

Windows: Run ipconfig

Run ipconfig

Have you ever needed or wanted to run a command from your run window?

win+r

run caption
Have you ever wanted to run a cmd command from there?

cmd /k <command> will allow you to run the command in terminal and keep terminal displaying.

For convenience I like to set this up to run my "ipconfig"

to do this all I do is:
cmd /k ipconfig /all

If you want to do more than this, and store your config somewhere, you can run this
cmd ipconfig /all > C:\Users\%username%\Desktop\ipconfig.txt

This will right the stats to the text file on your Desktop

#bearMan

Monday, 2 December 2013

Windows: Cannot open folder Access Denied

Cannot open folder Access Denied

Have you ever given your flash disk to someone and when you get it back, you cannot access files or folders again?

If yes there is a simple solution:
You need a registry key called TakeOwnership, what this does it when you right click on the folder there is a menu item that allows you to take ownership of the file/folder.

The registry Key looks like this:
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\*\shell\runas]
@="Take Ownership"
"NoWorkingDirectory"=""

[HKEY_CLASSES_ROOT\*\shell\runas\command]
@="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F"
"IsolatedCommand"="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F"

[HKEY_CLASSES_ROOT\Directory\shell\runas]
@="Take Ownership"
"NoWorkingDirectory"=""

[HKEY_CLASSES_ROOT\Directory\shell\runas\command]
@="cmd.exe /c takeown /f \"%1\" /r /d y && icacls \"%1\" /grant administrators:F /t"
"IsolatedCommand"="cmd.exe /c takeown /f \"%1\" /r /d y && icacls \"%1\" /grant administrators:F /t"

#bearMan, Saving you time in windows.

Windows: Enabling CMD on all Right Clicks

Windows: Enabling CMD on all Right Clicks


This task is fairly simple, open regedit
Go to:
HKEY_CLASSES_ROOT\Directory\shell\cmd
HKEY_CLASSES_ROOT\Directory\Backgroud\shell\cmd
HKEY_CLASSES_ROOT\Drive\shell\cmd



Click on the Extended String Value and delete it, if you want it to go away again Put these String values back.

You can also rename them.

#bearMan