Skip to main content
Filter by
Sorted by
Tagged with
Advice
0 votes
0 replies
81 views

I'm trying to programmatically get basic information about status of onedrive/sharepoint mounted files (e.g. is it cloud-only ?, is it pinned ? is it syncing ?) but without going too complex (i.e. ...
CitizenInsane's user avatar
1 vote
0 answers
128 views

I'm creating a library in C# on .NET 8.0 and using it in another project. File.csproj of my project: <ItemGroup> <ProjectReference Include="sub-modules/SimpleServerHTTP/...
DABL03's user avatar
  • 138
2 votes
2 answers
115 views

I have a custom script in my package.json that commits the working tree, bumps the version of my npm package, and pushes it to the remote. { "scripts": { "bump": "git ...
dimitris.terzz's user avatar
0 votes
0 answers
120 views

This is the kind of output I see in OpenAI's Codex under Windows Cmd in Windows Terminal (: Note all the extra symbols. In particular, look at options 2 and 3. Gemini suggested running chcp 65001. ...
AlwaysLearning's user avatar
1 vote
1 answer
116 views

I try to make a batch file to just confirm hosts are up. I have sections that work just fine but when trying to put them together it all goes to hell. The code is as follows: @echo off setlocal ...
Tired's user avatar
  • 3
4 votes
1 answer
163 views

In cmd, I wrote the following command to test an executable named "msl.exe": msl test c.exe The executable calls GetCommandLineA (from the Windows API) and prints the command line. However, ...
Kun Xiang's user avatar
Advice
1 vote
2 replies
94 views

I need to build a cmd file that copies "Merge.txt" from the same directory of cmd file to "D:\StackFlow\" Note: I want to copy that file whenever I change the directory source
A Mu's user avatar
  • 23
0 votes
1 answer
47 views

I can't recall (and can't work out) if there is a way to have a cmd FOR loop nested within another FOR loop where for each outer FOR loop iteration, the inner FOR loop is iterated. For example: FOR /F ...
skeetastax's user avatar
  • 1,826
1 vote
1 answer
136 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
72 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
175 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
111 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,021
Advice
0 votes
1 replies
46 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
5 answers
211 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
106 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
193 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.8k
2 votes
3 answers
256 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
124 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
100 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
  • 429
0 votes
3 answers
201 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
141 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
  • 820
2 votes
1 answer
109 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
165 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
3 votes
1 answer
1k 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
221 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
94 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
188 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,736
2 votes
4 answers
269 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
116 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
121 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
74 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
123 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
0 votes
1 answer
85 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
270 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.3k
2 votes
1 answer
133 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
314 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
  • 66.2k
0 votes
1 answer
79 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
  • 5,997
1 vote
1 answer
56 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
  • 219
-1 votes
1 answer
63 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
  • 91
1 vote
2 answers
125 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
175 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
105 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
98 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
636 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
259 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
133 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
111 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
149 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
109 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
  • 840
-1 votes
2 answers
94 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
2 3 4 5
488