24,372 questions
1
vote
1
answer
67
views
gcc gfortran compiler does not recognize blank spaces inside filenames
Is there a way to enforce the execution of the Fortran compiler contained in gcc-16.1.0-64 to recognize a blank space in a filename when executed in the Windows cmd.exe command line? Others, like the ...
Advice
1
vote
2
replies
96
views
How to bypass the 8-digit mark?
I have a directory with about 15,000 files (images, movies. sounds, etc.), "Dir1".
I also have a file with about 2,000 files that I need to find in "Dir1" and transfer to "...
Advice
0
votes
2
replies
54
views
Learning Batch to automate basic steps in Windows 11
What would y'all say is the fasted way to learn and use batch?
I've started with a few basic scripts to automatically open a few programs on startup,
Additionally a generic matrix scrolling text thing ...
-4
votes
0
answers
57
views
cmd.exe automatically respawns with random arguments and consumes 4+ GB RAM on Windows 11 [closed]
Symptoms:
cmd.exe appears automatically even after killing it.
Sometimes there are two instances.
RAM usage grows until the system becomes nearly unusable.
The process disappears and comes back ...
Advice
0
votes
0
replies
89
views
How to programmaticaly get ntfs extended attributes (e.g. "ALOM") without using cfapi?
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. ...
1
vote
0
answers
136
views
Fixing error CS0579 when creating a C# library
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/...
2
votes
2
answers
122
views
How can I prevent Windows PowerShell from breaking my bun/npm commands
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 ...
0
votes
0
answers
175
views
Gibberish symbols in Codex under Windows cmd in Windows Terminal
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. ...
1
vote
1
answer
128
views
How to make a batch file to ping hosts to confirm they are up?
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 ...
4
votes
1
answer
182
views
(windows assemby) GetCommandLineA returns string with extra space after the executable name
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, ...
Advice
1
vote
2
replies
96
views
Get cmd file for copying Files
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
0
votes
1
answer
50
views
One line cmd nested FOR loop within FOR loop with delayed variable expansion (not in a batch file!)
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 ...
1
vote
1
answer
143
views
Escaping % from nested Batch scripts inside a loop
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="...
Advice
0
votes
2
replies
78
views
Prank to automate Win11 system sound change
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 & ...
2
votes
2
answers
183
views
Why is there no need of double quotes around a command with a space in it
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....