Close command prompt immediately - cmd

when I open the command prompt to work on it, it's close after few seconds Immediately without close it or make anything exit..
I search about solution It didn't work, any solution ?

Related

How to skip visual mode on bash prompt when returning from visual mode editing?

I'm a pretty active vim user so I like to have the vi mode active on the bash line. For the most part, I don't feel the need to slip into the full visual editor for entering commands, but sometimes it can be kind of useful.
Whenever I do though, I always end up forgetting that when you quit the editor you're still in command mode, not insert mode. To me this seems totally silly since it returns you to an empty prompt, so you can expect to start typing. Half the time I go to start typing "vim" and then end up re-entering a vim editor for my command line.
Is there a way to make returning to insert mode the default for bash?

Command Prompt Simulate Click in Another Window

I have no idea where to start about creating the solution for this, as I am only experienced in JS/HTML/Java/Lua/C++. What I'm trying to do is, from the command prompt, click at any place in an already opened window. For example, the already opened window could be a program called "Gorg" with the title/name "Gorgiant", and it would just need to simulate a click anywhere in that window if that's possible.
Perhaps you can try AutoHotKey . It has commands to check if a window exists .

Stop cmd window from closing automatically

I use Dev-Pascal on Windows 8.
When I run the program, cmd.exe opens and runs the program and closes automatically.
How can I prevent this?
Try to add readln; before end.
This will make your program to pause till you hit enter.

How can I see which processes/programs are sending/recieving data over internet in XP?

Is it possible to write a script to see which processes/programs are sending/receiving data over the internet in Windows XP? I have full administrator rights and I want to find a way to monitor data exchange on my machine without installing any additional software.
Step One: Windows XP
Open up the Run box by pressing the Windows key and R at the same time.
Put in CMD and press OK. The command prompt window will open up:
Step Two
In your open Command Prompt window, enter the following:
netstat -b 5 > activity.txt
and hit enter. (Note: to paste something into Command Prompt, you'll need to right click and click paste.)
If you forgot to run the prompt as an administrator (like I did in the screenshots above), just redo step one You can tell when it's running as administrator because instead of saying C:\Users\Username it says C:\Windows\system32.
If you've pasted the code right, a blinking cursor will... blink.
After a few minutes, press Ctrl+C. That'll stop the command.
Now type in command prompt activity.txt to open the log:
When you press Enter, your default text editor-probably Notepad-will open:
Now, scroll through the lists. You'll see that it's mostly your browser-but some times, there are programs like Google Talk's webcam program installed that call home even when you aren't using them.
Now that you've found any and all culprits that are programs accessing the internet (with and without your knowledge), you can either close them from the Task Manager or even uninstall them.

My Ruby files don't run correctly

When i click on a .rb file to run it a CMD window pops up for a brief second and then closes again. This is probably a really nooby question thats easily fixed but i've looked everywhere for help. But like i said it pops up for a brief second and i THINK while its up its executing the code but when the codes done it closes so i don't know if i'm making mistakes in code or other important things like that.
Run the program through the command prompt (CMD), that way you can see the result, otherwise the window closes when the program exits.
Alternatively, you can prevent the program from exiting by putting some sort of blocking instruction at the end of the script, such that the program waits for user input before exiting.
Press Windows_Key+R and then type CMD. Browse to the location of the file and then type ruby your_ruby_file.rb. The program is running, but Windows automatically closes the window upon completion of the command.
To get Windows to run your *.rb files through Ruby when you click on them in the UI, you have to associate the .rb extension with the ruby.exe executable. Such an association is called a "Windows File Association." Here's a Microsoft Knowledge Base article that'll tell you how to create such a thing.
http://support.microsoft.com/kb/307859

Resources