Jump to content
xisto Community
Sign in to follow this  
soleimanian

Command Prompt Tips

Recommended Posts

Command Prompt tips

 

How to change Command Prompt settings

 

You can easily change Windows Command Prompt settings, such as: Font, Font Size, Color, background, Buffer Size and …

To change Command Prompt, Right-click the title bar of the command prompt window, and select Properties. Here you can change command prompt settings.

 

How to copy text from a Command Prompt

 

1-Right-click the title bar of the command prompt window, click Edit> and select Mark.

2- Now, you can select the text you want to copy, just click and drag the cursor to select the text.

3- Right-click the title bar, click Edit> and select Copy.

4- Paste the text on your editor

 

How to open command prompt to a directory

 

You can open a command prompt to a directory that is selected in the Explorer

1- click start > Run > and type “regedit” (without quotes), to run Windows Registry Editor

2- find and go to following “HKEY_CLASSES_ROOT \ Directory \ shell”

3- Create a new key and name “Command”, and give it value of the name you want to appear in the Explorer

4- Under this key create a new key and name “command”, and give it value of cmd.exe /k "cd %L"

5- Now right click on a folder, select Open DOS Box, and a command prompt will open to the selected directory.

Share this post


Link to post
Share on other sites

How To unban/ban sites using command prompt

Command Prompt Tips

 

Answer these Questions in order please.

 

1.How do I unban sites using command prompt because my brother did this to me and I have know way to figure out Please answer This question I would appreciate it alot.

 

2.How do I restrict/ban sites using command prompt I would like to know Thank you very much for your time

 

-reply by Ammar

Share this post


Link to post
Share on other sites
DOS Box Cursor ColorCommand Prompt Tips

Hi -

Windows 2k/XP: Have been successful in changing the text and background color of the DOS box; however still have a blinking cursor in *white*...

Q: Is there a way (maybe via registry settings) to change the *cursor color* too..?

 Thanks. 

-question by Marty

 

Share this post


Link to post
Share on other sites
Toi get time stamp in th txt file created by CMD.Command Prompt Tips

I run a command to map another system.

net use xx.Xxx.Xx.Xxx /user:abcd abcd123@ >> log.Txt

From this iget "The command completed successfully." in the txt file however it want the time this command was executed do that I can keep a track on the same.

something like  " May 09 2009 10:00:12 Am : The command completed successfully."

Kinldy help me if we can achive this.

Thanks in advance.

Kardiva

Share this post


Link to post
Share on other sites

How to copy text from a Command Prompt (the easy way)

 

I find myself at the command prompt frequently and copy/paste is essential. You can set the preferences to more permanently facilitate copy/paste.

 

1. Right click the title bar and select properties.

2. On the Options tab check Quick Edit Mode.

3. Click OK.

4. A new window will appear asking how you would like to save these changes, select Save properties for future windows with same title.

 

Now when you need to copy something from the command line, use your mouse to make the selection (similar to selecting icons in Windows Explorer). Once you have what you want selected, hit the Enter key and it is saved to the clipboard. If you want to paste, right click the mouse and the clipboard will be pasted where the cursor is.

 

This method takes some getting used to but Ctrl+C cannot be used at the command line because it has the special property of issuing a break and stopping any current processing. Ctrl+C was in DOS well before the idea of copy/paste so it gets priority by virtue of time.

Edited by tansqrx (see edit history)

Share this post


Link to post
Share on other sites

How To unban/ban sites using command prompt

 

Command Prompt Tips

 

Answer these Questions in order please.

 

1.How do I unban sites using command prompt because my brother did this to me and I have know way to figure out Please answer This question I would appreciate it alot.

 

2.How do I restrict/ban sites using command prompt I would like to know Thank you very much for your time

 

-reply by Ammar

When you are referring to sites I assuming you mean Windows accounts? You can stop a user from accessing the command prompt by using Group Policy. You must be an Administrator on the machine to use the Group Policy Editor or make any changes so make sure your account has these permissions. A fairly useful Microsoft Knowledge Base article is located at https://support.microsoft.com/en-us/products/windows and tells you how to run Group Policy Editor. There are many options from disabling screensavers to disabling the command prompt, just look for the one that applies to you.

Edited by tansqrx (see edit history)

Share this post


Link to post
Share on other sites

How To unban/ban sites using command prompt

 

Command Prompt Tips

 

 

 

Answer these Questions in order please.

 

1.How do I unban sites using command prompt because my brother did this to me and I have know way to figure out Please answer This question I would appreciate it alot.

 

2.How do I restrict/ban sites using command prompt I would like to know Thank you very much for your time

 

-reply by Ammar


Are you sure sites are blocked in command prompt? This is higly unlikely since there is no such built-in feature. He is probably using running a external program to filter URLs using a blacklist or whitelist, or using the default Windows HOSTS file to redirect some of your URL requests to a none existent website.

Share this post


Link to post
Share on other sites

How to copy text from a Command Prompt (the easy way)

 

I find myself at the command prompt frequently and copy/paste is essential. You can set the preferences to more permanently facilitate copy/paste.

 

1. Right click the title bar and select properties.

2. On the Options tab check Quick Edit Mode.

3. Click OK.

4. A new window will appear asking how you would like to save these changes, select Save properties for future windows with same title.

 

Now when you need to copy something from the command line, use your mouse to make the selection (similar to selecting icons in Windows Explorer). Once you have what you want selected, hit the Enter key and it is saved to the clipboard. If you want to paste, right click the mouse and the clipboard will be pasted where the cursor is.

 

This method takes some getting used to but Ctrl+C cannot be used at the command line because it has the special property of issuing a break and stopping any current processing. Ctrl+C was in DOS well before the idea of copy/paste so it gets priority by virtue of time.


hmmm, actually I don't suggest settting this as a default. Because it will cause some unneed access to the insert mode.

If you have done a comparsion with windows 2000 and windows xp. You will found that windows xp had changed it from enabled to disable.

 

As I still works with both windows 2000 and windows xp. I do not like or need it by default. To access the insert mode, just right-click over the command-prompt and choose mark, and now can start mark the text to be copy; and press enter to copy the text to the system clipboard.

Share this post


Link to post
Share on other sites
how to change Admin settings in command prompt mode????Command Prompt Tips

My system is starting only in safe mode. Somebody changed my administration settings. Now I couldn't install kapersky. I wanna login normally and not from safe mode.Somebody help me with it...

Also please tell me how to change administration settings in Command prompt mode.

 Is ther some way to find out the admin password using DOS commands???

-question by sandy

 

Share this post


Link to post
Share on other sites
How To unban/ban sites using command promptCommand Prompt Tips

Yeah I agree. He is using what is known as the 'bounce' technique. It is the same technique used at schools. When you input a swear word, a type of code searches the documents for any swear words that are saved and updated into a list. I only know of 1 such a code which is visual basic 6.0. I have used it for this same purpose.

Its done by writing code for the exported program which is comtinuously running in the background. When ever a URL is sent through the computer, it searches any matches for that URL. If the is a match, command code tells the computer not to retrieve information from this site. It is done using a .Bat file. You can normally stop this by going into task manager clicking on process and it should be in the saved under something like vbscript, or comVB, or Command. If none of this works, I assume he is using your internet security options which you can get into using control panel. Somewhere in there should be a list of things that are allowed and things that are not allowed through your firewall.He may have put the site under 'Blocked'.

Keywords:

Share this post


Link to post
Share on other sites
How to add a program so it is regocnizable as an external command in cmdCommand Prompt Tips

 I'm both a Windows user and a Linux user but whenever I am navigating in the cmd prompt within Windows I usually end up typing 'ls' (the Linux version of 'dir') and Windows reports back to me that ls is not a valid command. Well I finally got sick of it an decided to add ls functionality to my cmd prompt. To do this I downloading GNU ls for Windows from here:

https://u-tools.com/msls

And moving the file 'ls.Exe' into my System 32 folder, unfortunately 'ls' still did not work for me, this is how I fixed it (this will work for anyone attempting to run a program as an external command from the System 32 folder through the cmd prompt):

I edited my PATH variable in my system's environmental variables if you do not know how to do this here is a nice tutorial:

http://www.computerhope.com/issues/ch000549.htm

I edited the value of the variable to include "%SYSTEMROOT%System32" without the quotes. If you have anthing else in the value make sure to serperate it and this with a ;

There you go! You've just added a program as an external command for your Windows cmd prompt.

-reply by Natooka

Share this post


Link to post
Share on other sites
How to get files from windowsCommand Prompt Tips

I have a corrupt Windows XPIt's almost imposible to bootEven if I boot I still can't press anything, because if I try do do anything it freezes then it crashes...

What I need to know is there a way to put a file onto a usb with command prompt

if so could somebody send me an tutorial or guide.

-question by Romano

Share this post


Link to post
Share on other sites
Time stampCommand Prompt Tips

you're in luck: I have just the thing, was working on it a while ago.

(echo Date: %date%)>>log.Txt(echo Time: %time%)>>log.Txt

brackets may or may not be necessary, I haven't checked, but I'm pretty sure it'll screw up if you don't have them.

-reply by matthew

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.