Skip to main content

All Questions

Tagged with
1 vote
2 answers
1k views

echo|set /p=foo > foo.txt sets %ERRORLEVEL%

I've noticed some very strange behaviour when trying to write text to a file without having the trailing new line. There is code everywhere which looks like that: echo|set /p=foo > foo.txt It ...
3 votes
2 answers
7k views

What does the following notation mean: \\?\c:\ mean?

I recall hearing someone mention something about de-referencing a path but de-referencing wasn't explained and I don't know what it is.
75 votes
8 answers
113k views

Less or More in Windows?

Is there a command in the Windows DOS prompt that is equivalent to the UNIX less or more? Basically, the problem is that when I type hg log, the output has too many lines to fit on the screen and I ...
4 votes
2 answers
12k views

Git is in the PATH, but is not being recognized as a command

I've recently reinstalled Git, and I just can't get it to run off the native Windows command prompt anymore. I'm sure it is in Path environment variable, as you can see: C:\Users\Ult>where git C:\...
32 votes
1 answer
58k views

How to recursively list files (and only files) in Windows Command Prompt?

Wanted: I want a listing of files with full paths listed out recursively in Windows 7 through the command prompt. I DON'T want folders to be listed. Attempt: This got me all files, but also included ...
14 votes
2 answers
20k views

Why is my PATH environment variable different from the command prompt?

A bit of important background: my company has a generic login VBS script that makes modifications to the user PATH environment variable upon login and allows me to run software that has dependencies ...
105 votes
6 answers
350k views

Turn off display in Windows on command

Is there a way to turn off the display in Windows (7), preferably without using additional software? Powershell script works fine, but leaves command-line window after turning on the display.
6 votes
3 answers
18k views

Windows 7 Command Prompt problem - cannot find 'cmd'

When I try to open a Command Prompt in Windows 7, the following message comes up: Windows cannot find 'cmd'. Make sure you typed the name correctly, and then try again. How can I overcome this ...
1 vote
0 answers
678 views

how to prevent Windows OS password resetting methods e.g. utilman.exe

I came here because topic is serious about my windows system, here is last day somehow I abled to reset my windows password by doing.. This Windows Commands Using bootable Windows OS Open Commands ...
6 votes
5 answers
21k views

Run cmd.exe in Administrator mode without explorer.exe

I've recently had trouble with explorer.exe not working. I found a possible solution here, using sfc.exe. The problem is that I cannot "right-click Command Prompt, and then click Run as ...
4 votes
4 answers
3k views

Windows 7 cmd.exe "text mode" with Alt+Enter?

In XP, I can go to text mode in cmd.exe with alt+enter. This is when it goes full screen (no windows, no graphics - it uploads a raster font to the hardware). No longer works in Windows 7. What ...
3 votes
3 answers
666 views

Windows command prompt "change directory" command is not changing directory

I am trying to change directory from the C drive to the E drive, but it’s not happening, as shown below: C:\>cd E:\Program files\wkhtmltopdf C:\>echo %cd% C:\ It says C:\ is the current ...
6 votes
1 answer
40k views

How to disable and enable a USB port via command prompt?

How to disable and enable USB port via command prompt? Or using a batch script or VBScript? The OS is Windows 7.
2 votes
3 answers
15k views

Batch File Check Directory exists in x64 and/or x86

I need to be able to run this batch fine on both x86 and x64 machines to check if a program has been installed correctly . We have an app that installs in x86 in the standard program files directory, ...
29 votes
3 answers
77k views

Chkdsk Questions

Recently in running chkdsk /r on my system drive (platter drive, Windows 7 Ultimate 64bit) I've gotten back results like: 4 EA records processed 76 reparse records processed Am I right in assuming ...

15 30 50 per page
1
3 4
5
6 7
73