All Questions
Tagged with windows-7 command-line
1,085
questions
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 ...
8
votes
2
answers
46k
views
Moving multiple files via command line to one folder/directory (Windows 7)
C:\Users\Moondra>move "WebScraping with Python projects.ipynb", Untitled2.ipynb "Scraping projects"
I'm trying to move the first two files ("WebScraping with Python projects.ipynb", Untitled2....
57
votes
9
answers
167k
views
How to copy a directory structure without copying files?
I have a folder with a lot of subfolders and files in them. Is there a way to copy the folder and subfolders directory structure without copying the files they contain, using cmd or powershell?
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.
76
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
59k
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
685
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
667
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 ...
8
votes
5
answers
67k
views
Access denied, cmd move windows 7
I can't use this command in win 7 when want to move a directory if the destination exists. It says Access denied. Why hapens this? It worked in XP.
move /y "%1" c:\mydir\
I can use robocopy, but ...
31
votes
8
answers
118k
views
how do I enable scrolling in Windows command prompt?
I open cmd.exe and I wanted to see my IP address. So I typed in ipconfig but then all the output does not fit in the CMD window, so I can't scroll up and actually see the important stuff.
So how do I....
18
votes
5
answers
92k
views
What exactly happens when you use the 'copy /b' command?
Today, I just discovered I could merge certain files using the copy /b command. In particular, I noticed that when I merged two mp3 files, the VLC player exhibited funny behaviours with the timing:
&...
7
votes
2
answers
3k
views
Windows 7 XP Mode: Passing command-line parameters to VM apps?
Does anyone know a way to pass command line parameters to virtualized programs inside an XP Mode VM?
I have a VM with Internet Explorer6 installed (and another with Internet Explorer7), and using the ...
17
votes
8
answers
168k
views
How to change keyboard layout via command line cmd.exe on Windows XP/7?
Is is possible to change the keyboard layout via command line on Windows XP/7?
13
votes
3
answers
24k
views
Rename multiple files as "Modified Date/Time" using cmd or Powershell
I have hundreds of JPG files in a folder. I want to rename each file so that the file name is replaced with "Modified Date/Time" of that file, namely DD.MM.RRRR.HH.MM.jpg. For example,
Before ...
2
votes
2
answers
13k
views
Node.js won't run from cmd.exe in Windows 7 x64
I installed Node.js from the installer on the project's main website. I checked all of the options on install to make sure it could be used correctly. However, when I go into an administrator command ...
1
vote
1
answer
861
views
Windows: Run PHP via command line from htdocs
I'm trying to run PHP via the command line (Windows 7), however it's a pain tuping the full path to PHP every time. I tried using mklink
mklink /D "c:\xampp\php\php" php
however that doesn't seem to ...
0
votes
0
answers
989
views
Disable IPv6 using CMD or Powershell on Windows 7
I'm trying to disable IPv6 connectivity on Windows using either command line or WMI api without restarting the computer (I know about adding an entry into Windows registry, but this requires rebooting ...
9
votes
6
answers
28k
views
Restoring 'TrustedInstaller' as owner for executable in Windows folder
After changing the ownership of executables in the Windows directory (explorer.exe, regedit.exe, etc.), I can't seem to change it back to TrustedInstaller using icacls.exe. Using the GUI method (...
15
votes
3
answers
31k
views
What does "/factory,{CLSID 75*4b} -embedding" do?
Can someone explain me the following explorer CLI :
C:\windows\explorer.exe /factory,{75dff2b7-6936-4c06-a8bb-676a7b00b24b} -Embedding
2
votes
1
answer
20k
views
Generating PDF via command line in PDF Creator doesn't work, works in GUI
I'm using PDF Creator on Windows 7 and am having problems generating some PDFs from the command line that I don't when using the GUI.
I am using the following command, and my purpose is to use the ...
8
votes
6
answers
24k
views
Disable MsMpSvc from command line
Quite simply I'm looking for a way to disable Microsoft's security essentials service from the command line, you used to be able to run the command (as admin)
net stop MsMpSvc
but that was somehow ...
10
votes
5
answers
180k
views
Printing from Windows 7 command line
I'm looking to automate some printing in Windows 7. Ideally from command line. Just as if I would've right-clicked and selected "Print".
Tried the command:
C:\>print /D:"CutePDF Writer" test.txt
...
1
vote
2
answers
13k
views
Rename a Mapped Network Drive via CMD
I map a network drive via command line. Once this drive is mapped, it appears under My Computer with the full path.
How can I rename the mapped drive using command prompt?
I have used the "full ...
23
votes
5
answers
70k
views
Windows equivalent to xargs?
What would be the Windows 7 Equivalent for the following command?
find . -type f -print0 | xargs -0 sed -i 's/ url \([^" >][^ >]*\)/ url "\1"/g'
I am trying to migrate Django 1.4 to 1.5
10
votes
3
answers
58k
views
How do I open a file with vim from cmd?
I'm using windows 7.
Unix I can open a file in vi with by using:
vi textFile.txt
In windows I want to navigate to the folder and type what I have above.
What is the best way to go about this?
...
6
votes
2
answers
4k
views
Check Bandwidth utilization of specific application or process in windows 7
I want to know is there any command-line tool (windows built-in or 3rd party), that can be used to check bandwidth utilization of a particular process or executable?
For example, i want to check ...
21
votes
4
answers
82k
views
Windows 7 - Open the Volume Control popup from the command prompt
I would like to open the Volume Control popup directly without using the mouse or keyboard. Currently, I am using AutoHotkey to press Win+B to focus on the system tray, Left to highlight the Volume ...
0
votes
2
answers
60
views
Does the Windows 7 CLI command "shutdown" ensure all disk writes occur before power ends?
I have a Windows 7 Batch file, (that I wrote), that opens a database program, and when the program is exitted, copies a large number of files from one folder to another folder on the same hard disk, ...
0
votes
1
answer
165
views
Combine two windows cmd as single cmd to run the process at once
How can I combine two windows cmd as single cmd.
My objective : At present I have to create the folder in destination and than run the convert cmd separately.
Solution required : I want to merge both ...
2
votes
1
answer
3k
views
Windows task scheduler not running batch file on network drive
I have a batch file that I'd like to run with the Task Scheduler. Running the batch file manually works fine. If the batch file resides on the C:\ drive, task scheduler runs it fine, but if the ...
6
votes
5
answers
11k
views
tabcal.exe command line switches
There is a utility on Windows 7 that allows you to do touch calibration, if you have a supported touch screen.
The executable is tabcal.exe and it's located in:
C:\Windows\System32
I'm look for a ...