All Questions
Tagged with command-line windows-7
1,085
questions
161
votes
16
answers
737k
views
How can I find out when Windows was last restarted?
How can I know when my computer running Windows 7 was last restarted?
I prefer a solution that doesn't involve searching the event log, but something like wmic or maybe cmd commands.
17
votes
4
answers
48k
views
How can I access volume levels from the command line on Windows 7?
What I need
I'm looking for a tool or a script that allows me to access the Windows volume levels from the command line. Ideally it would allow me to get and set all volumes including application ...
2
votes
4
answers
10k
views
Auto rotate scanned text image (OCR via command line?)
Can I auto-rotate an image that contains mainly text? Maybe via OCR? The algorithm or whatever needs to scan the image and decide if it has to rotate it 90°, 180° or 270°
I want to include this ...
3
votes
1
answer
15k
views
Repairing a specific file or folder in windows 7 with chkdsk or alternative program
I have a 500 GB NTFS partition on which there is a folder that I know contains some bad sectors.So to save time and resources, Is there any possible way to run chkdsk or alternative program to repair ...
71
votes
3
answers
64k
views
Command prompt hangs until keypress?
Problem:
For some reason once in a while my command prompt would hang until I press a random key, and it would continue operation as if nothing happened.
Occurrence:
This happens when I am running a ...
18
votes
5
answers
38k
views
prevent sleep in scripts
Is there a way to prevent Windows from going into sleep mode while running a program on the command line or with cygwin? Ideally, I'm hoping for something that could be used like:
nosleep myscript....
0
votes
4
answers
11k
views
Windows 7 command script to mount VHD disk with assigned drive letter via DiskPart
I use VHD disk for storing my Dropbox files on my office PC.
I need the .vhd to be loaded automatically when booted i.e. I will just have to enter decode password instead of going all the way with ...
16
votes
3
answers
42k
views
taskmgr.exe called with an argument by Windows 7
I noticed when I press Ctrl+Alt+Del and click Task Manager, Windows calls taskmgr.exe /3 as the command. Several websites claim the Task Manager has no command line arguments.
Why does Windows attach ...
1
vote
2
answers
2k
views
Rar only certain extensions?
I'm using RAR at cmd
How can I rar only *.cs && *.ashx ?
I tries with the @listfiles.lst file which contains the extensions but it doesn't work. ( it adds all files !)
any help ?
the ...
4
votes
3
answers
8k
views
Mapped network drive unavailable on reboot until viewed in windows explorer (windows 7)
I have an ubuntu 11.04 machine with a samba share, which I access from a Windows 7 machine. Both have same username and password. The network drive is mapped and remembered on Windows. When I reboot ...
8
votes
5
answers
27k
views
Determine remote windows screen locked or unlocked remotely
I have several Windows 7/2008 workstation in my domain environment. We have a GPO that autolocks Window if no one is working on it(idle). No screensaver just lock.
How can I remotely check whether the ...
1
vote
4
answers
1k
views
Disabling the "Windows cannot find '[foo].exe'" popups
When I use the start command in a batch script to launch a program, I expect that program to be launched asynchronously; this happens exactly as I'd expect it would if the program that I'm launching ...
13
votes
3
answers
44k
views
Command line option to open program as administrator in Windows 7
If I want to open Notepad and edit the hosts file, I have to invoke the Start menu, find the Notepad shortcut, right click and run as administrator, then open the hosts file in Notepad in order to ...
1
vote
1
answer
914
views
change to mapped network drive at command line
I have searched for the captioned question here and found these posts :
How do I change to a mapped network drive at the command line?
Windows 7: Command Prompt won't CD into a network mapped drive
...
2
votes
2
answers
18k
views
What is the reason PSExec keeps asking to accept EULA?
I'm using PSExec in a script that I run in a Windows 10 to send some commands to a Windows 7. However, sometimes these commands don't work and I realized this happens because at random times, when I ...