Skip to main content
Filter by
Sorted by
Tagged with
1 vote
1 answer
102 views

I have a batch escaping problem involving 3 files: chain.bat conatins this code: for %%x in (%*) do ( %%~x ) b.bat contains this code: chcp 65001 >nul start chrome --profile-directory="...
Shai Ben-Dor's user avatar
Advice
0 votes
2 replies
50 views

I'm looking to set up a prank on a USB device. The goal is to change the Windows 11 system sound for inserting and removing a USB drive to two different audio files (let's call them clip1.wav & ...
M R's user avatar
  • 77
2 votes
2 answers
132 views

I want to create a shortcut which (1)opens cmd.exe in a specific folder, then, (2)runs within that terminal "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvars64....
One_Cable5781's user avatar
0 votes
2 answers
104 views

A year ago I created an Eclipse project (Eclipse 2020-06, Java 8, Win 10) that uses the GIS LAStools libary to e.g. extract data from a couple of files. I'm now using Win 11 on a different PC and want ...
Neph's user avatar
  • 2,013
-1 votes
0 answers
98 views

I tried hard with a lot of methods: dte.ExecuteCommand("View.C#Interactive"); Even tried deleting temp file bin .....etc I'm also changing view. C# Interactive to other and using ,0 ...
Braa gamer's user avatar
Advice
0 votes
1 replies
41 views

This is my first time using a Proxy to intercept tcp data and I think I misunderstood some concepts and this is why I'm unable to correctly intercept/log packets. Here is my setup: My application: My ...
Pordrack's user avatar
1 vote
4 answers
173 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
-3 votes
1 answer
102 views

I have a cli app written in go and when it closes I want the directory to move to the selected one. When I close I wasn't able to find any way for that to happen so I tried making a .bat wrapper for ...
Joseph Jitto's user avatar
0 votes
2 answers
185 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
2 votes
3 answers
228 views

Problem Given some arbitrary process that may or may not output to both stdout and stderr, I need a way to execute that process on the command line in Windows that captures stderr on its own. I also ...
OmniZ's user avatar
  • 143
1 vote
1 answer
120 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
1 vote
3 answers
94 views

I would like to write a simple Windows batch script that, given a directory containing a set of subdirectories, loops through them all and calls a batch script of the same name in each. The code I ...
keith969's user avatar
  • 383
0 votes
3 answers
171 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
-1 votes
1 answer
132 views

A single (hybrid) file can contain both Batch and PowerShell script without generating extra temporary files by leveraging the comment syntax of each language. This allows the Batch interpreter to ...
samm's user avatar
  • 830
2 votes
1 answer
96 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
135 views

I was following Kotlin Tutorial So I went to notepad++ and created hello.kt Contents of hello.kt fun main() { println("Hello, World!") } Next I opened cmd and typed: kotlinc hello....
RUMBIDZAI MUKUNGUNUGWA's user avatar
2 votes
1 answer
920 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
0 votes
1 answer
214 views

I wrote this batch to get the number of active processes given a certain command line value, but the not equal operator I use in the query to exclude WMIC.exe itself doesn't work, and the batch ...
PeterH's user avatar
  • 63
-1 votes
1 answer
84 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
0 votes
1 answer
157 views

In Windows cmd you can run wsl commands just by typing: > wsl pwd /mnt/c/Users/user/ But when I try to run functions that are stored in ~/.bashrc file, nothing is happening: > wsl test > ...
IGRACH's user avatar
  • 3,726
2 votes
4 answers
212 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
3 votes
1 answer
98 views

When I try to run flutter doctor in CMD in windows I get this message: C:\Windows\System32>flutter doctor dd93de6fb1776398bf586cbd477deade1391c7e4 was unexpected at this time. C:\Windows\System32&...
Peter Tom's user avatar
2 votes
1 answer
105 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
1 vote
2 answers
70 views

Look at this cmd.exe command: powershell.exe -NonInteractive -NoProfile -Command "&(""{0}{1}""-f 'ec','ho') hello" powershell reports error: C:\Users\Administrator>...
FishBone000's user avatar
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
-1 votes
1 answer
78 views

I'm trying to set an environment variable named AUTH with the value of on but it's not working. I have tried the following (both not working): set AUTH=on set "AUTH=on" When I try to print ...
0xdeadbeef's user avatar
4 votes
1 answer
206 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
2 votes
1 answer
123 views

see this example please: C:\ ..ex1\ ....start.bat ....111\ ......1.bat ......222\ start.bat: @echo off pushd 111 call 1.bat popd echo CD is wrong:%cd% pause 1.bat @echo off setlocal pushd 222 ...
Badr Elmers's user avatar
  • 1,816
5 votes
1 answer
236 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.5k
0 votes
1 answer
72 views

In a Windows OS and using batch file commands, how can I program a script to copy a file into a directory location that changes with unpredictable version numbers? Say today I have this C:\Program ...
Dale's user avatar
  • 6,007
1 vote
1 answer
53 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
  • 223
0 votes
1 answer
48 views

I am trying to create a task in a AzureDevops release pipeline that uploads a file to SharePoint. Since the extensions in the marketplace give me increasingly weird errors, i wanted to do this via cmd ...
MaxH's user avatar
  • 95
1 vote
2 answers
115 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
0 votes
1 answer
142 views

in this code I think I have to write set /a counter=%counter%+1 but I just tried write it without %% and interestingly it works I don't how?! can anyone explain it @echo off setlocal ...
Mikel91's user avatar
  • 33
2 votes
2 answers
95 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
0 answers
89 views

I've been building a WebSocket application and I opted for Python FastAPI + Uvicorn for server side. Having pretty much finished the app, I decided to pack the server into an .exe file. Even though I ...
Mateusz Woźniak's user avatar
2 votes
2 answers
334 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
4 answers
250 views

The content of a variable %myvar% was set by the command SET myvar="aaa<bbb" and this constitutes the input to the problem (a "given" that cannot be changed). How to display the ...
George Robinson's user avatar
0 votes
2 answers
119 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
0 votes
1 answer
89 views

Putting all my shame aside, I wasted too many days with this simple task: compile all source files in a subfolder and create a library out of all the resulting object files. I have no idea if this is ...
MaXiMkA's user avatar
  • 449
1 vote
0 answers
118 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
2 votes
0 answers
108 views

I am trying to manipulate my swagger doc. I need to run redoc split to separate the main swagger. During start.cs I am getting the swagger doc and saving it to the file system. That works as ...
USMC6072's user avatar
  • 832
-1 votes
2 answers
93 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
-1 votes
1 answer
88 views

There are two main commands im using, ripgrep and gawk(awk version for windows). Im on the cmd, so i cant really use $( ) Basically i use ripgrep to find a patter in a list of markdown files: rg --...
Joao pedro's user avatar
2 votes
2 answers
199 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
-1 votes
1 answer
60 views

The following program is used to simulate cmd.exe using subprocess. import subprocess import sys import threading def handle_output(shell): while shell: output = shell.stdout.readline(1) ...
vIIr's user avatar
  • 9
0 votes
1 answer
636 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
3 votes
2 answers
184 views

I'm a new learner of the C programming language, and I've been having trouble setting up some code I made for a small quiz in Brazilian Portuguese. Here it is: #include <stdio.h> #include <...
Thurlex's user avatar
  • 33
0 votes
1 answer
159 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 votes
2 answers
312 views

I'm looking for an elegant way to search for windows service Paths not encapsulated in quotes (nessus 63155). The reasoning behind this is to inspect some server for vulnerability to Microsoft Windows ...
Bending Rodriguez's user avatar

1
2 3 4 5
488