All Questions
8,827
questions
-1
votes
0
answers
24
views
Error when trying to install Android SDK tools on Windows
When running the command in cmd sdkmanager "platform-tools" "platforms;android-33", it asks to accept the terms with my response Y, and then displays:
Accept? (y/N): y
Warning: ...
0
votes
1
answer
40
views
Python - Clear and Print to Same Line for Multiple Lines on Command Prompt
I want to clear and update the same lines on command prompt for each file it processes with Python.
First I tried using ANSI codes using sys.stdout.write('\033[F\033[F\033[F') and sys.stdout.write('\...
-2
votes
0
answers
71
views
How to login to an FTP-server with CMD (Windows 10?) [closed]
Want to read which files are on an FTP server.
Would like to create a batch file that does this (automatically)
Preferably without installing any programs that are not in Windows.
After the files are ...
-1
votes
0
answers
27
views
How to disable and enable power monitor usb via power monitor script
I am using power monitor to test current, and I want to do some simple testing via automated commands Before test, I need to send some command to machine via usb, then the current test need remove usb(...
1
vote
0
answers
36
views
Command-line sqlplus does an unwanted change directory
Normally starting the command-line version of sql*plus (sqlplus.exe) would retain the current working folder, allowing a script that is stored in that same folder to be run with the @ command.
D:\...
0
votes
4
answers
87
views
Retrieve only the drive letter, (without the colon)
I spent a few hours trying to figure this out. Please kindly provide a little help:)
I'm using this to capture the drive letter:
FOR /F "tokens=2 usebackq delims==" %i IN (`wmic volume where ...
1
vote
1
answer
58
views
Get Windows startup folder from CMD with different system language
I'm trying to get Windows (10/11) startup folder location in a system whose language is French.
Normally, I use this command to get the folder location:
set "startupFolder=%APPDATA%\Microsoft\...
0
votes
0
answers
26
views
Output from cmd.exe from C# differs from real command prompt [duplicate]
I'm trying to verify current python version. Since I'll check a lot of requirements for my app, it should be done via CMD using C# Process.Start()
Real CMD output (without a code, just using cmd.exe ...
1
vote
1
answer
58
views
Unable to create and rename a directory according to file version result from WMIC [closed]
I am trying to:
Create a new directory.
Rename that directory with the version of a downloaded file.
Move the downloaded file to that directory, (e.g. 125.0.6422.142).
Here is the pertinent code:
@...
-1
votes
1
answer
38
views
Django startproject [WinError2]
When I try to create a new project using:
django-admin startproject main
I get this error:
CommandError: [WinError 2] The system cannot find the file specified: 'C:\\Users\\edgar\\Documents\\main'
I ...
0
votes
0
answers
37
views
cmake execute_process OUTPUT_VARIABLE Empty and RESULT_VARIABLE 0
Trying to execute cmake execute_process with following command:
cmake_minimum_required(VERSION 3.26)
project(test_cmake)
execute_process(COMMAND "some_executable.exe" --python-version ...
2
votes
1
answer
66
views
Why is cmd with switch /c not working from File Explorer address bar as expected with closing console window after start of VS Code?
I use the Explorer address bar to directly open the folder in VS Code.
I first open cmd by typing cmd in address bar from the directory I want to open in Visual Studio Code. I have been trying to find ...
0
votes
0
answers
49
views
Is there a way to detect BIOS or UEFI system I am dealing with under WinPE?
I would like to know is there an option to find out if my Windows 7 or 10 PE is run on UEFI or BIOS system? I checked https://learn.microsoft.com/ru-ru/windows/win32/cimwin32prov/win32-bios and it ...
0
votes
1
answer
176
views
python 'Unknown option: -e' message in Windows [closed]
I installed python on my Windows machine and added the python directory to the PATH variables.
The python keyword seems to be recognized in cmd.exe, but when I want to execute something, I only get ...
1
vote
0
answers
58
views
How to pass a numeric variable, from inside a FOR loop, to a subroutine and retaining its value
I'm having a problem passing numeric variable, from inside a FOR loop, to a subroutine, and accessing its value.
I'm trying to pass some numeric values to a subroutine, but I'm getting strange results....