Skip to main content
Filter by
Sorted by
Tagged with
-6 votes
0 answers
67 views

This is the beginning of my project. And I ran into many problems faster than expected — problems that no AI could help me with, I know of the moment. Just ignore the fact that it was written for ...
Mäx's user avatar
  • 36
-3 votes
0 answers
115 views

My code: #include <bits/stdc++.h> #include <iostream> #include <string> using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); int n; cin ...
Andrew 's user avatar
1 vote
4 answers
156 views

Given is a string which is a url of a file, e.g. http://url.com/file.zip. I want to extract the path without the file name, i.e. http://url.com/. My idea for doing this was to break down the string ...
C4lculated's user avatar
0 votes
2 answers
167 views

I'm trying to output part of a file (the text enclosed between :begin(...) and :end(...) markers) using a BATCH script. The target is pure ASCII text but it may contain blank lines and symbols; the ...
Fravadona's user avatar
  • 17.6k
1 vote
1 answer
114 views

I am using the following code to start putty according to the current COM name: powershell -Command "$COMPORT=(Get-WmiObject Win32_SerialPort | Select-Object Name, DeviceID | Where-Object { $_....
Sándor Rózsa's user avatar
0 votes
4 answers
159 views

I have a folder that contains 1000 .wav files on a Windows 7 system. I have fdkaac.exe in the system environment path. If I run the following batch file: for %%i in (*.wav) do fdkaac.exe -b256 -w20000 ...
Stan Duncan's user avatar
2 votes
1 answer
93 views

I want to run Chrome with js script and url which contains fragment, like this: "C:\Program Files\Google\Chrome\Application\chrome.exe" --app="data:text/html,<html><body><...
Vadym Zelenyuk's user avatar
2 votes
1 answer
746 views

I am new to flutter. I have flutter installed, and I installed an emulator image using sdkmanager and also installed an emulator in vscode. I am able to launch the emulator but when I try to run my ...
Stephen Musa's user avatar
-1 votes
1 answer
72 views

I am using Qt6.5 I have a button on my UI. When clicking on the button, I want to run a command in CMD. Below is my code when clicking: QString output, error; QProcess process; process.start("cmd&...
QuantumRiver's user avatar
2 votes
4 answers
201 views

The following Windows batch file sets the contents of the out.txt file to two ASCII characters, namely: X and <LF> (0x58 and 0x0A ). @echo off SETLOCAL SET LF=^ set /p=X^%LF%%LF%<nul>out....
George Robinson's user avatar
2 votes
1 answer
103 views

I'd like to convert a pipe of video stream between streamlink and ffmpeg from cmd to Powershell. But from what I searched powershell only supports piping objects. Is there any way to reproduce this in ...
krawieck's user avatar
  • 135
2 votes
1 answer
108 views

When I run a script, for example one that says echo a>>1.txt the command line interpreter adds a space; so in the command line, executing the above says echo a 1>> 1.txt And of course, ...
Alex's user avatar
  • 1,143
4 votes
1 answer
185 views

I put Daily Test Run.bat inside E:\Test folder. This is the content of the bat file: @echo off cd /d "%~dp0" echo %~dp0 cd /d E:\Dev cd /d "%~dp0" echo %~dp0 Then I cd to E:\...
Graviton's user avatar
  • 83.2k
5 votes
1 answer
208 views

A while ago there was a security advisory published for Rust that the standard library's Command API was not sufficiently handling arguments passed to cmd.exe and .bat files such that malicious ...
kmdreko's user avatar
  • 65.3k
1 vote
1 answer
48 views

I have a very simple python script inifinity_loop.py: import time i = 0 interval = 5 while True: print(f'I am counting {i} seconds') time.sleep(interval) i += interval and I want to ...
xymzh's user avatar
  • 227
1 vote
2 answers
107 views

I've never written or read any ruby code in my life until today - this said - I've been tasked with solving an input problem. In the short amount of reading I've done, I've found that @vars are ...
k1dfr0std's user avatar
  • 602
2 votes
2 answers
84 views

-> I want to find this string in the text file flashwareFileName="FL_992920900X_0143__V001_S.pdx" Attempts: findstr /s "=\"FL_" *.xml > temp.txt findstr /s "=FL_&...
Steve1506's user avatar
2 votes
2 answers
292 views

How do I get the file's md5 hash in windows using the command line? I only want the raw MD5 hash without all the extra text. I tried asking chatgpt but it gave me half working command. for /f "...
TravelWhere's user avatar
0 votes
2 answers
118 views

Apologies if this is an odd way of phrasing the question, but I mean printing text here for the user to edit: Essentially, I'm trying to make a program using C++ where the user can edit pre-existing ...
MijiGamin1's user avatar
1 vote
0 answers
105 views

I'm trying to set up Node.js using fnm on my Windows machine (using the Command Prompt). I installed fnm via winget and then installed Node.js version 22 with the following commands: winget install ...
Foad S. Farimani's user avatar
-1 votes
2 answers
91 views

Task description Prompt the user to enter their age in years, save the users response as a variable age. If the user did not provide a response like an empty string or letters or characters echo a ...
Theone uneedtoknow's user avatar
2 votes
2 answers
179 views

There was a question asked here with the same title, but I don't understand what it was talking about. All I'm trying to do is see if the end-user is putting in vaguelly the same text. This will also ...
BritishSyndicate's user avatar
0 votes
1 answer
526 views

I'd like to launch an unrelated program from Steam, so that Steam shows me as playing that game even though I'm not. Specifically I'd like to open a browser and have Steam show me playing a game while ...
Amaroq's user avatar
  • 93
0 votes
1 answer
145 views

For anyone using 'cmd' instead of 'pwsh' (such as me) How do you use the GITHUB_ENV to set/store environment variables persistently between steps
dvossCricut's user avatar
1 vote
1 answer
93 views

I have installed Windows 2012 server Core only so I can only use command prompt. I created certain users in groups and given them permissions to write, read, delete etc. Now I wish to use the cmd to ...
Sumit's user avatar
  • 11

1
2 3 4 5
488