Questions tagged [windows-command-prompt]

Refers to the default CLI that ships with all versions of Windows, often shortened to just "command prompt" or cmd (after the file name of the executable).

Refers to the default CLI that ships with all versions of Windows, often shortened to just "command prompt" or cmd (after the file name of the executable).

383 questions
0
votes
0 answers

Is it possible to reconnect to a remote cmd.exe shell?

I am using freesshd.com to run an ssh server on my machine. I need to be able to execute .bat files in their normal environemt so I am using the cmd.exe shell, the only shell I know of that can correctly execute .bat files. I have tried launching…
Zombies
  • 515
  • 2
  • 6
  • 13
0
votes
1 answer

How to display the first 50 lines of a command output in Windows? (the equivalent of Unix command “head”)

I need to display the first 50 lines of the output of a command (any command). In other words, I essentially want an equivalent of the Unix "head" command. but I dont have permission to create file using the command : C:> netstat -an > temp.txt &&…
0
votes
1 answer

Parsing access.log squid proxy

I have logs files, access.log-*, and I need exclude the 'TCP-DENY' (or include only the 'TCP-MISS'). How I parsing, like grep command on linux, access.log file on windows? On linux it is work fine. I need doing it on windows script (bash). Thanks
0
votes
1 answer

Can I stop Hyper-V from the command line without powershell?

I have Hyper-V and one VM running on a dedicated server at 1and1.com. I did not realize it was against their policy to "spoof mac addresses" which is apparently what Hyper-V does when you boot up a VM with bridged networking. My server has been…
Christopher
  • 1,381
  • 1
  • 12
  • 22
0
votes
1 answer

How to escalate to administrative token in Windows 7 using only CMD.exe

If I am not able to right click on CMD and run as administrator, or CTRL + Shift + Enter to run CMD, but I am using an administrative user account in a non-admin shell (CMD.exe); How in the world do I escalate to an admin from that shell? Runas…
user160910
0
votes
2 answers

Chkdsk and PSEXEC

I run maintenance for a lot of offices and use chkdsk as a part of the maintenance. I've recently been using PSEXEC to start a batch file that simply runs chkdsk and then pauses to keep the command prompt window open so that I can check to see if…
Charles
  • 21
  • 1
  • 4
0
votes
1 answer

Application Error. The application failed to initialize properly (0xC0000142)

We are constantly seeing this error message on our Windows Server 2003: cmd.exe - Application Error The application failed to initialize properly (0xC0000142). Click on OK to terminate the application. It appears when logged in as console. It…
mbp
  • 151
  • 1
  • 6
0
votes
5 answers

Non-blinking block-cursor in Windows XP command-prompt?

Purpose I normally work in many UNIX-like environments using Xterm. I have grown fond of the non-blinking block-cursor it uses. In fact, I have grown so accustomed to it (especially in Vi) that it has become difficult to edit without it. Now that I…
0
votes
5 answers

On windows cmd, how can I get a list of running tasks with full pathname?

I know that the TaskList command show the currently running tasks but it does not show the full pathname. Is there a way to do it?
Stecy
  • 122
  • 1
  • 2
  • 6
0
votes
1 answer

Clearing cmd.exe memory or cache

The main question is how do I clear the command prompts memory or cache. I ran this on cmd.exe svn info Which prompted me a for a username and password which I entered. I then logged off and logged back in immediately and I entered that same…
Abs
  • 1,559
  • 5
  • 19
  • 32
0
votes
2 answers

Files and their headers?

(I'm a dos guy , I always liked to view files in norton commander and see inside stuff etc) however over the years I've noticed that each file(well , most of) ( binary files ) has header : For example exe file has the MZ header : PGP file has…
0
votes
1 answer

cmd.exe version comparison?

When using batch files or console applications on Windows servers the window in question can allow text to be hightlighted (marked) for copying and pasting. Doing this pauses the batch/application and it will only resume after the copy operation.…
0
votes
5 answers

Restart a Windows service from a script?

I know there are several similar posts on the subject, but what I would like to know is how to re-start a service that has already been stopped. Is there a .bat or .vbs script that would check if the service is stop and then restart it if it's…
0
votes
2 answers

XAMPP/PHP on Windows

I am running XAMPP on Windows Vista. XAMPP is a ~one year old install with all default options. I wrote a script in PHP that will do a web crawl and place data in mysql. I placed set_time_limit(36000) in the PHP-source code so that the script will…
John R
  • 297
  • 4
  • 10
0
votes
1 answer

How to customize Pipes in Windows?

I'm console application and want to save the output to a text file. So I do this: Pi.exe > Pi.txt Then open the text file and see this: Calculating Pi to 10,000 decimal places... Then I se Pi (3.14...) How can I have the command prompt remove the…
Kredns
  • 496
  • 1
  • 8
  • 15