All Questions
Tagged with command-line windows-7
1,085
questions
4
votes
2
answers
1k
views
Add backslash if a string doesn't have it
I'm developing a command line Batch file on Windows 7. I'm trying to add \ to a dir if it hasn't.
This is only a test:
@echo off
set solutionDir=%CD%\
echo %solutionDir%
if [%solutionDir:~-1%] ...
3
votes
1
answer
769
views
Windows 7 command promt number of buffers and buffer size
In Windows 7, the Command Prompt has two configuration options called Buffer Size and Number of Buffers found in the Options tab. Following these instructions, I've tweaked these two values to ...
2
votes
2
answers
6k
views
cmd.exe error windows 7 the application was unable to start correctly (0xc0000142). Click ok to close the application
when i try to open the cmd.exe. a box pops up with the message of cmd.exe error windows 7 the application was unable to start correctly (0xc0000142). Click ok to close the application.
my pc was ...
11
votes
4
answers
14k
views
Notepad++ open cmd in current file's directory
Is there a way (probably a macro) how to open cmd in current file's directory?
Say I am editting a file D:\foo\bar.txt and would like to open cmd in D:\foo\. It would really help running various ...
0
votes
1
answer
4k
views
Unable to output to lpt1: from cmd
I am running Windows 7 32-bit on an old laptop with an onboard parallel port. I have an Okidata Microline 320 printer connected to that port; the printer has been tested to work fine when printing ...
0
votes
1
answer
70
views
What privilege is required by the caller to invoke the -ExecutionPolicy parameter of Powershell 7.x
When invoking Powershell directly by invoking PWSH.EXE, it accepts an -ExecutionPolicy parameter for essentially a "one time/this-instance-only" invocation with something other than the ...
39
votes
7
answers
161k
views
How to Execute ShortCut From Command line in Windows 7
We came with a scenario where we have to use Shortcut file (.lnk), which is on the desktop, to execute an application for a headless device (i.e, without manual intervention).
Is there any way to ...
0
votes
1
answer
7k
views
UAC problems with msiexec silent mode
I have a msi package which I want to install to some computers, which aren't necessary on the same domain neither network.
The way I spread the msi package it doesn't matter. We can expect that file ...
0
votes
1
answer
10k
views
Running a program from network location on Windows 7 from cmd
I have to run a configuration script on a number of computers that is stored on a network location. I run CMD as administrator and then run the command which looks something like this:
\\server\...
29
votes
6
answers
35k
views
How to list installed font families?
How can I list the family names of installed fonts on Windows?
Any command line utility or any registry paths?
2
votes
1
answer
6k
views
Changing Visual Effects settings through command line
Is there a way to change/modify the Visual Effects settings via command line? For example, I want to control (enabling and disabling) on Animate windows while minimizing and maximizing option from ...
8
votes
2
answers
27k
views
How to start on-screen-keyboard when installing windows
How do I start the on-screen-keyboard during the windows installation process? I need to install Windows 7 and I don't have keyboard, I only have a mouse.
0
votes
1
answer
4k
views
How can I verify that CNTLM works correctly?
I had installed and configured CNTLM on my Windows 7 machine.
CNTLM is running and I can see it in Process. I have problems with a development tool that points to http://localhost:3128, I have doubts ...
3
votes
3
answers
3k
views
Is it possible to get ONLY the Drive Label using WMIC?
Using WMIC, I want to get only the drive label based on the drive letter:
for /f "skip=1" %a in ('wmic volume where "Driveletter like '%C%'" get label') do echo %a
Now, those of you who understand ...
4
votes
1
answer
11k
views
Batch execution error "not recognised as an internal or external command"
D:\temp\copyTXT.bat is a simple script containing:
XCOPY /v D:\temp\MyFile.txt D:\Documents\
Executing the script fails, flashing a window for ~100ms, then does nothing (no copy at all), but if I ...