Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
0 votes
1 answer
69 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 ...
David W's user avatar
  • 256
7 votes
4 answers
11k views

Convert UTF-16 LE to UTF-8 in windows via command line

(question re-written to be more useful) I have a batch script which will interact with command line programs, take their output, and then perform decisions based on that output. One of the programs I ...
bfh47's user avatar
  • 103
1 vote
0 answers
670 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 ...
Jason0011's user avatar
  • 111
0 votes
2 answers
58 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, ...
fixit9660's user avatar
0 votes
1 answer
160 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 ...
Travelz Online's user avatar
0 votes
2 answers
80 views

Run this line by line, or as a whole

I am trying to install flask. Docs say to make an environment: Create an environment Create a project folder and a venv folder within: Windows mkdir myproject cd myproject py -3 -m venv venv How ...
NotStanding with GoGotaHome's user avatar
0 votes
1 answer
45 views

My windows 7 downloads files with appended lines

I have a windows 7 on my old laptop which don't support newer OS so i keep that as a test machine for various codes. Most of the times I use wget for transferring files from my new laptop to the old ...
RickyLo's user avatar
  • 17
0 votes
1 answer
3k views

How to install .inf file in windows 7 using cmd

Hello i had installed windows 7 on my Dell Latitude E6410. I am using Driver Easy to download missing drivers. All drivers I have downloaded but they are in .inf file. I have used device manager to ...
m-naeem66622's user avatar
-2 votes
1 answer
597 views

How can I have a .bat run on startup in the background [closed]

How can I have a .bat file run on startup in the background on a windows computer? Also I'm not the admin, so I have to do it without admin priveleges. Its an old computer I bought at a garage sale.
Kovy Jacob's user avatar
2 votes
2 answers
2k views

Unable to change default program to open a file from cmd

Once I thought, what can happen if I open the CPP file with cmd. I thought it will work similar to the type command in cmd, but when I understand it isn't, I wanted to change the default program from ...
RajinCoding2007's user avatar
0 votes
1 answer
1k views

Cannot delete file that "does not exist" according to Windows-7

Somehow a file ended up on the personal desktop of my Windows 7 machine that does not actually exist. I recognize the title as part of a Reddit post, but I don't know how it ended up on my desktop. ...
Cullen S's user avatar
1 vote
1 answer
153 views

I Froze My Computer’s Clock With CMD And I Can’t Unfreeze It

So I wrote the following cmd file: :he time < time.txt goto he The contents of time.txt are: 00:00:00.00 My goal here was to freeze my Windows 7 clock to see if it caused a program on my computer ...
user64742's user avatar
  • 247
2 votes
1 answer
223 views

Why is my cmd.exe in windows 7, opening with Administrative privileges?

Why is my cmd.exe in windows 7, opening with Administrative privileges. (I won't say Running "as Administrator" 'cos i'm aware that Win7 "Run As Administrator" option, runs it with ...
barlop's user avatar
  • 24.2k
0 votes
1 answer
442 views

Sed for windows not working after Powershell edit

I want to automate selecting data out of a pdf file for later processing in a spreadsheet. 1: Copy all text into a .txt file, using Notepad - ok. 2: Remove all newlines, CRLF, to create a single line ...
Phil's user avatar
  • 1
1 vote
1 answer
15k views

How do you use gpg4win from command line to encrypt or decrypt a file?

I have Windows 7. (Not Windows 10 so I don't have the fancy native "Windows Services for Unix" that Windows 10 apparently has) How do you use gpg4win from command line to encrypt or decrypt ...
barlop's user avatar
  • 24.2k
2 votes
1 answer
3k views

How to pass a second parameter with quotes ("") with cmd.exe /k?

When doing: cmd /k "C:\Python37\python.exe" D:\test a\test.py it fails because of the space in the directory name. But when doing: cmd /k "C:\Python37\python.exe" "D:\test a\...
Basj's user avatar
  • 1,900
1 vote
0 answers
736 views

Windows 7 VM error VERR_PATH_NOT_FOUND cmd

i have a windows 10 host and windows 7 guest, but every time i enter this command with or without the -partitions argument i get errors for context, i'm using an elevated PowerShell and an elevated ...
anonymous's user avatar
1 vote
1 answer
1k views

How can I see the contents of a USB drive through cmd?

Can't boot into Windows. I am trying to replace certain files in the system32/drivers folder from cmd through the bootable installation disc. The files I want to use are on a USB driver. I basically I ...
JJrussel's user avatar
  • 119
0 votes
1 answer
33 views

Command line open window

I used to connect to two external displays. and now I'm using only laptop screen. When I open command line, window doesn't open in laptop display and I have to use 'move' to drag it into laptop screen....
rao's user avatar
  • 111
0 votes
0 answers
963 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 ...
monkeber's user avatar
1 vote
1 answer
373 views

Batch file with elevated permissions is not working?

After seeing this solution: How to run batch file command with elevated permissions? I put this in a batch file: powershell -command "Start-Process cmd -ArgumentList '/c %CD% && elevated.bat'...
bat_cmd's user avatar
  • 551
1 vote
0 answers
228 views

How to change VPN properties using cmd in Windows 7

With all this virus stuff, my company sent me to work at home. But when I connect to my company's VPN, I lose the internet connection. I have read on the internet that I must disable the option "Use ...
BraveOtter's user avatar
1 vote
1 answer
654 views

Windows 7 - Hyper-V - Boot manager failed to find OS Loader

This virtual machine has worked before but when switching between computers something happened with the file. When starting the Windows 7 virtual machine I get the following error on both computers: ...
Ogglas's user avatar
  • 2,084
0 votes
1 answer
844 views

Remotely run Windows 10 command line from Windows Server 2016

I have Jenkins running a batch file on a Windows Server 2016 PC. The batch file that Jenkins runs needs to execute a program, via command line, on a Windows 7 PC. This is part of an automated ...
Thomas Matthews's user avatar
0 votes
1 answer
1k views

What is the name of the font that the Windows 7 Command Line uses? [duplicate]

I'd like to know the name of the font that is referred to as the "Raster 8x12" font in the Windows 7 command line, does anyone know?
Lebster's user avatar
  • 101
1 vote
2 answers
6k views

How to enable USB device manager in Windows 10 from command-line or Registry?

I have disabled one of the USB device drivers from windows 10 Device manager in my tablet (to check something). It was the main USB device driver of Windows. This caused all USB devices to stop ...
Shahar's user avatar
  • 346
0 votes
1 answer
228 views

Why Copying CMD commands from OneNote to CMD adds folder name starts with "."?

When I copy CMD command within OneNote Table and pasted into Command Prompt in Windows 7. It automatically adds first folder within current directory starts with ".". This is the command in OneNote: ...
muhammad tayyab's user avatar
0 votes
1 answer
3k views

Error 703 with rasdial pbk file

I need to make a VPN connection using pbk file and login / password silently without any dialogs. Just like run script - connected. Also user should not create a connection manually, everything should ...
user12125591's user avatar
1 vote
2 answers
314 views

Launch Chrome from cmd, group icons

I can launch 2 Chrome windows as apps as follows: start "" "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --user-data-dir="C:/app1" --app="http://yahoo.com" start "" "C:\Program Files (...
dreamer's user avatar
  • 81
0 votes
0 answers
346 views

Start command keeps command window open

I have a batch file which looks like start "Java" "C:\Program Files\Java\jdk-12.0.1/bin/java.exe" <various classpaths and parameters> Until recently it started up the Java executable and the ...
Peter's user avatar
  • 161
1 vote
1 answer
411 views

My Windows 7 Home Premium 32-bit OS put password itself

I sat in my chair to use my computer, and when I started Windows OS, I noticed that Windows set a password by itself and I'm sure that I have not set any password before. Okay, let's have a look the ...
python_pardus's user avatar
0 votes
1 answer
3k views

Error download mysqlclient on Windows

After type this code in Terminal pip install mysqlclient I recieve this error message: ERROR: Command errored out with exit status 1: command: 'f:\pycharm\python\python.exe' -u -c 'import sys, ...
user1080316's user avatar
0 votes
1 answer
371 views

List and count directories that don't contain a specific file

I have a folder with many subfolders in it. Each of these subfolders may or may not contain a file named "George.txt". This command (in a batch file) for /d %%A in (*) do @if not exist "%%~fA\George....
stoyian0v's user avatar
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 ...
Natiya's user avatar
  • 259
1 vote
2 answers
1k views

Why don't Libre Office command line options seem to work on Windows?

This is LO 6.0.7.3 on Windows 7 Enterprise. All other instances of LO have been shut down (I discovered in Linux that this was vital.) Here is example non-output: C:\Users\[snip]>"C:\Program ...
RonJohn's user avatar
  • 261
0 votes
1 answer
306 views

Windows 7: Cipher or Format console program to wipe (write 0) across a hard drive

How good of a job does Windows 7 cipher do in wiping a hard drives contents? I have cmd elevated with administrator privileges and I'm running cipher with /w on a designated 1TB Seagate hard drive. ...
Francis Cugler's user avatar
0 votes
1 answer
517 views

Equivalent to gpresult for local security policy

I just wonder how I can show the currently applied Security-Policy (not Group-Policy) from a machine from the command-line. i know i can show the current applied Group-Policy with gpresult using ...
PaulRobeere's user avatar
2 votes
1 answer
50 views

Windows 7, Can't execute commands without their extension anymore

Since a recent update of Windows 7, I'm facing a weird probleme which I never faced before. All my environment variables are up to date, but, all my commands need the extension to execute. For ...
Mehdi Bennis's user avatar
0 votes
1 answer
5k views

python.exe is 0kb and cmd gives "This app can't run on your PC. To find a version check with the software publisher."

I'm using windows 10 64-bit. I had python 2.7 (python-2.7.15.amd64.msi) running normally on my PC from October 2018. Suddenly, when I execute python in cmd, I get the message: "This app can't run on ...
user1023490's user avatar
0 votes
2 answers
717 views

Force PERL script to use portable perl

I have been developing my scripts using Strawberry perl installed in C: drive (5.20.11) I've now installed the portable version on my USB stick. (5.28.xx) Whatever I try, it ALWAYS reverts to the ...
Cristofayre's user avatar
1 vote
1 answer
194 views

What am I doing wrong with this Windows 7 FTP script?

I am trying to create a text file (commands.txt) for FTP in Windows 7. The file looks like this... open 10.10.10.12 9999 USER anonymous anonymous GET file1.txt bye I then jump to a Command Prompt(...
dlowrie290's user avatar
0 votes
1 answer
1k views

CMD, icons and batch files

I'm trying to keep my scripts and user startups in two different folders, (the ultimate aim to hide the main program scripts) So I have put the batch files in the script folder, created shortcuts, ...
Cristofayre's user avatar
0 votes
1 answer
155 views

Forgerock Directory Service Control Panel.bat file missing

I'm Install a new Directory Service on my PC,but the control panel.bat file can't generate, that one file is missing,I'm was able to continue the installation process. Directory Service Version:-6.5....
user1015211's user avatar
0 votes
0 answers
430 views

"directory name is too long"?

I recently formatted and reinstalled Windows 7 Home Premium SP1. Now, when I recursively search for a file from the command prompt (eg,dir c:\somefile.* /s) I get a lengthy list of invalid folder ...
ashleedawg's user avatar
1 vote
0 answers
1k views

netsh advfirewall firewall dump gives no result

Props: Windows 7, Windows Firewall, my account is configured as administrator, CLI also as administrator Because some rules entered via GUI did not work as expected, I've tried to check the rules on ...
Kitana's user avatar
  • 111
5 votes
1 answer
2k views

Cannot run cmd or powershell as NON-Admin

So this is an odd one... I need to run the 64-bit version of command prompt/powershell as non-admin. Unfortunately, no matter what I try, it will only run in elevated mode. From what I've seen, in ...
user997967's user avatar
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 ...
mkUltra's user avatar
  • 101
0 votes
1 answer
129 views

Windows 7 run batch file at low priority in wide window

I have a long-running, CPU-intensive job that I want to run with low priority. This is easily done in a Windows 7 batch file with START /LOW. The only problem is that it starts a separate window ...
rwallace's user avatar
  • 2,629
0 votes
2 answers
2k views

run as administrator doesn't elevate process

I am trying to run netsh wlan set hosted network mode=allow as administrator but when I run it from an elevated cmd, or powershell, netsh still replies that: You must run this command from a command ...
Andrei's user avatar
  • 293
13 votes
5 answers
55k views

Windows 10 MSG command mystery

I'm an old-timer experienced Windows user from way back. My main computer is a Windows 7 Pro box. We bought a new PC for a new office; it of course has Windows 10 (Home) on it. I was doing some work ...
J.Merrill's user avatar
  • 311

1
2 3 4 5
22