Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
-1 votes
0 answers
13 views

Why do i keep getting an java.lang.NoClassDefFoundError: when running sbt?

I want to run a bot on windows. I'm trying to run sbt in cmd. I installed sbt and java 22 x64 MSI Installer. I ran sbt but i keep getting an error. I think maybe this has to do with java so i ...
Lily White's user avatar
1 vote
1 answer
26 views

Terminal Powershell differences

When I type dir /A into terminal I get desirable output, but when I type the same to Powershell i get dir : Cannot find path 'C:\A' because it does not exist. + CategoryInfo : ObjectNotFound: ...
konto's user avatar
  • 33
0 votes
0 answers
35 views

Is there anyway to resume "stuck" cmd.exe in windows 10?

For a lack of a better description, look at this screenshot: Sometimes, after an out of memory semi-crash, cmd windows remain in this state. If I click on them, nothing happens. (some of them work ...
Zibri's user avatar
  • 271
0 votes
0 answers
25 views

Windows - redirect stdout and stderr output to a file avoiding unsync

Following answer from this question I've found that using dir > a.txt 2>&1 to output stdout and stderr to a file might be unreliable as stdout and stderr appear to get unsynced sometimes. ...
FamousSnake's user avatar
0 votes
2 answers
50 views

Packages being skipped when installing using winget sequentially

I have a bootstrap script which does a lot of things to setup a new Windows installation. It calls other scripts within that script, including this one which installs some packages using winget: @echo ...
paradroid's user avatar
  • 23.1k
0 votes
1 answer
51 views

Cannot delete file in Windows 10 [duplicate]

On Windows 10, there is a file [%UserProfile%\Videos\Lorem.mkv] that is less thant 9KB and I cannot delete it. The file belongs to me, I have permissions to it, there are no prompts for entering a ...
TalVik99's user avatar
0 votes
0 answers
23 views

Starting a program from the CLI with some File Properties Options activated

Start a program from the CLI with some File Properties Options activated I want to start from the CLI automatically a graphical application with a File properties flag setted. High DPI scalling ...
freddie_ventura's user avatar
0 votes
1 answer
39 views

Fairly new computer, windows 10 pro, not able to open cmd in a specific path by typing cmd in the address bar of file explorer

I used to be able to do this on my laptop. But now I have a desktop and when I try this, it just shows C:\> instead of being in the path I want it to be in. I have no idea how to fix this or where ...
Starship's user avatar
1 vote
3 answers
139 views

Is there a difference between combining commands with & and running them one at a time?

Say I want to run multiple, computationally complex commands on Windows command line. Does it makes a difference, performance wise, if I combine them with &: doSomething1 & doSomething2 & ...
overdriven's user avatar
0 votes
1 answer
31 views

How to paste encryption password for rclone's "crypt"

I'm trying to restore my rclone configuration and I have the original randomly generated encryption password and salt for one of my remotes. However, when setting this up in rclone on Windows, I can't ...
user9564371's user avatar
1 vote
0 answers
34 views

Why does ping show received=5 while LAN cable is disconnected? [duplicate]

I am wondering why ping shows receiving packets even when the LAN cable is disconnected!!! Step 0: Set IP address of Laptop manually in same subnet as Device IP address, same subnet mask, no gateway, ...
HsVz's user avatar
  • 11
0 votes
1 answer
85 views

Copy and rename batch file

1folder (cover.jpg) 2folder (cover.jpg) 3folder (cover.jpg) . . There are so many jpg file with same name cover.jpg in multiple folders. I am trying to copy and rename all cover.jpg in another folder ...
Silver Lee's user avatar
0 votes
1 answer
108 views

limit amount of virtual monitors created at startup (usbmmidd)

I've met a problem setting up a remote desktop - AnyDesk couldn't connect since remote computer had no monitor. And I've found a workaround - I've setup a virtual monitor with usbmmidd that adds a new ...
FamousSnake's user avatar
1 vote
0 answers
68 views

Strange PSEXEC Output

Windows 2016 server from 2012. Sometimes when I run commands on multiple remote computers I'll get a strange output at the end of the command: psexec64.exe \\<computer1>,<computer2>... CMD ...
David Shader's user avatar
0 votes
2 answers
364 views

why is cmd taking like 20 seconds to open up in windows 11?

When I run cmd.exe, it takes ~20s to load, but when run as Administrator, it works immediately. I've tried: closing background apps, with memory and CPU usage being normal looking online, but all the ...
ZombZ's user avatar
  • 7
-2 votes
1 answer
38 views

In there some description of all the command processor macros in Windows?

I'm looking for a list of the macro strings known to Window 10 command processor, e.g. %ProgramFiles%, %ProgramFiles(x86)%, etc.
Max Yaffe's user avatar
  • 147
0 votes
2 answers
173 views

How can I make a custom utility library with functions that will be callable from windows cmd?

How can I make a custom utility library with cmd/batch functions that will be callable from a windows cmd terminal? You can make functions in a batch file, for instance: @echo off goto :main :...
Qwert Yuiop's user avatar
0 votes
1 answer
120 views

cmd // stop service ONLY if it's running, otherwise declare a variable

I'd like to make a short script which: Checks if specified services are running. If they do then they should be stopped (otherwise declare variable/s for the last point). Then there will be some code ...
superfractal's user avatar
0 votes
1 answer
119 views

CMD/Powershell looking for "curl" executable in the wrong location despite PATH

I have a strange issue with both CMD and Powershell on Windows 10 that has been giving me some trouble. An unrelated scriptwas failing when running curl, and after some investigation it looks like a ...
Syst3ms's user avatar
  • 11
0 votes
2 answers
77 views

How can I echo the actual logged in user if running batch as administrator?

I would like to know which user is logged in to Windows from the bat script I launch with right click and "Run as Administrator". If I try echo %username% the script obviously output "...
Kintaro's user avatar
  • 33
0 votes
1 answer
51 views

cmd.exe ignoring /t color when using /c instead of /k

Let's say I have a simple .bat file called foo.bat containing just @echo off :dostuff echo bar timeout /t 2 /nobreak goto :dostuff If I run it from prompt Microsoft Windows [Version 10.0.22621.3155] ...
John Doe's user avatar
  • 113
-1 votes
2 answers
175 views

Add confirmation after executing ROBOCOPY command

I have started to use ROBOCOPY command a lot. I use ROBOCOPY source destination /MIR. Is there any way to add confirmation, "y/n" after the command is executed, but not actually ran. So I ...
IGRACH's user avatar
  • 499
0 votes
1 answer
169 views

Windows pipe curl output to cmd

can anyone help me out here: curl -sSL https://pastebin.com/raw/CHCq9VQt | bash I know this command will retrieve the raw text from pastebin(just python --version) and run that in bash(linux) I need ...
Neptotech -vishnu's user avatar
0 votes
1 answer
240 views

Create a archive split into blocks of a maximum size using Windows shell

As example. I want to compress a directory of 100GB split into 10 archives of 10GB using cmd or powershell, non-interactive without installing additional tools. Using tar would be awesome but ...
unixcandles's user avatar
-1 votes
1 answer
134 views

Uninstall SourceTree using cmd or powershell

I would like to use cmd or powershell commands to uninstall SourceTree from windows 10 machines on my network. The reason I need a terminal way is that I have to do this remotely and simultaneously ...
Kristi Begaj's user avatar
1 vote
0 answers
323 views

How to pass a double quote as a command line argument in Windows CMD?

argc parameter in main function doesn't include redirection command [<, >], but I faced a confusing problem when using a double quote: Shell: CMD I expected argc is 3 and Yes!: a.exe aa bb <...
Doge's user avatar
  • 11
0 votes
1 answer
212 views

Windows tar command: exclude folder in current folder but not subfolders

I am trying to archive some folders with the tar command in Windows, and I would like to exclude a directory in the current folder, but not in subfolders. The example below is using the technique ...
triatic's user avatar
  • 33
0 votes
0 answers
56 views

Batch file output redirection to a text file; not complete

Examples: Parent-Dir= 'USA zip-code', Sub-dir(s)= 'yyyymmdd' Example filename= 139_7_IPC1_NVR16-8580_20230101104640.jpg There are six-hundred and ninety-nine files in the directory-tree that the, ...
query-01's user avatar
6 votes
1 answer
1k views

Windows: cmd.exe history (F3, F7, arrow keys, etc) stops working when running cmd.exe nested within itself

It's a strange thing: I've just noticed that the command prompt history works correctly when running "cmd" nested within itself up to 3x, but fails at 4x and above. It seems consistent ...
timpatt's user avatar
  • 163
0 votes
1 answer
135 views

How to Access and Inspect `edge://translate-internals` via CMD-Batch or PowerShell?

I've encountered a specific issue with the Microsoft Edge browser, particularly related to its translation feature. Similar to the situation described in this Reddit post, I am trying to find a way to ...
Foad's user avatar
  • 662
0 votes
1 answer
246 views

(SOLVED) how to enable and disable device in one batch file [duplicate]

I want a shortcut that enable/disable a network card according to its status. I figured out how to enable or disable using either devcon, wmic and pnputil or found some Q&As here that suggest ...
user2048695's user avatar
3 votes
2 answers
3k views

Merge multiple files into 1 file with a newline character between the contents of each file in command line

I've got for example 2 files with the contents test.txt 1 test2.txt 2 I want to merge these 2 files into one file. I saw on related questions that it was recommended to use type *.txt > merged....
Sebastian Byg's user avatar
0 votes
0 answers
51 views

starting chrome via WebDriver session wont use default profile - windows

I came from this GitHub but there are mainly linux prof. When I run the program via cmd chrome is opened but without any default profiles: chrome via program When I run chrome direct via cmd with &...
Tylonhh's user avatar
0 votes
1 answer
248 views

How to connect to Wifi via WPS-PBC from win cmd

Have any ways to connect to wireless network by WPS PBC (push button) from command line in Windows OS? May be needed add special profile in netsh?
Nikita's user avatar
  • 1
0 votes
1 answer
578 views

Delay in Command Prompt startup After Windows 11 Update

I'm encountering an issue with Windows 11 where there's a noticeable delay (about 2 seconds) in the text appearance when I launch the terminal. The terminal window itself pops up right away, but the ...
youssef Benhammouda's user avatar
4 votes
2 answers
414 views

How do I persist windows variables set in a CMD file?

in windows I would like to have a cmd script that I can run which sets an environment variable. The variable should still be set after the script executes. The variable is a token of sorts and is ...
George's user avatar
  • 181
0 votes
1 answer
267 views

How can I find out what is causing cmd.exe to be called on startup?

Lately I've noticed that every time I boot up my computer a cmd window pops up trying to open some long-uninstalled software. I was able to use Procmon to find out what the actual commands being ...
cvdx's user avatar
  • 1
1 vote
1 answer
98 views

Weird effects when one CMD script runs another, from inside a function

When one BAT or CMD script runs another (without call), that should not return, right? It sometimes does! And it searches the same function label in that other script?!? Example: (what do you think ...
Klaus Hartnegg's user avatar
0 votes
1 answer
168 views

"dir like" sorted by time in a batch file (.bat) using a piped string command: Get-ChildItem | Sort-Object -Property LastWriteTime, not working

I'm trying to build a trivial batch file in Windows for command line to execute a "dir like" command to list the directory contents sorted by time, avoiding typing: Get-ChildItem | Sort-...
nostromo's user avatar
1 vote
1 answer
599 views

Press any key to exit in command prompt?

I have an autohotkey script that runs cmd to check the hash for the selected file. I use certutil command for that task. #h:: hwnd := WinExist("A") for Window in ComObjCreate(&...
medukia's user avatar
  • 33
0 votes
0 answers
42 views

Where did mklink go, it is not recognized in Windows-11 Home? [duplicate]

Following some hack for changing home directory name, you need to link the old directory to the new. Instruction said to use mklink. However, mklink is not recognized in Windows-11 Home. Where did it ...
not2qubit's user avatar
  • 2,365
0 votes
2 answers
227 views

Windows taskkill not finding titled cmd.exe

I'm starting a lot of .bats, in which I execute, for example: title Waterfall-Proxy I do this, to have an easier closing the right cmds when I want to shut them down. To shut them down, I'm using: ...
Deutsch - Musik's user avatar
1 vote
2 answers
123 views

How to open a random picture in a catalog?

I have an unknown list of folders and subfolders containing pictures I want to run 10 random pictures at 30 second intervals If possible, close the previous one after the timer expires. I tried to ...
zeni1agent's user avatar
0 votes
1 answer
279 views

Cmdline to swap mouse buttons back

As a non-admin user without access to the reg command, how do I swap the mouse buttons back so that the primary button is the left button. The command rundll32.exe user32.dll,SwpmMouseButton will set ...
cup's user avatar
  • 363
0 votes
1 answer
375 views

Send info from ffmpeg to text file & then parsing into a new file

I am trying to scan a directory of .mkv files and output the volume information to out.txt and then parse out.txt for volume_max and send it to log.txt using for %i in (*.mkv) do ffmpeg -i "%i&...
Preston's user avatar
0 votes
0 answers
31 views

Can any Windows pros help me sort out this cmd promt boot failure mess?

i7 13700k RTX 4070ti 32g Dominator 5200 MSI Z670 Edge Evo 990 Pro 1TB (this replaced a 980 during this repair, to rule out disc failure; the 980 was fine it appears) This was a month old new build ...
Jeigh's user avatar
  • 1
1 vote
2 answers
220 views

How do I "mv */* ./" in a Windows command shell?

On a Windows machine, I've got about 50 subdirectories in the same directory, each with around 5 files in it. I want to get all 250-or-so files into one directory. In a UNIX system, I'd just open a ...
onigame's user avatar
  • 113
2 votes
1 answer
500 views

How cmd get arguments list

I have a file a.cmd. Path to the file is C:\Program Files\a\a.cmd and C:\Program Files\a is in PATH environment variable. When I invoke a.cmd from PowerShell (v. 7.2) I see that a process with the ...
kkj's user avatar
  • 21
2 votes
1 answer
2k views

How to get disk model and serial number for the disk Windows is installed on

You can use wmic diskdrive get model,serialnumber to get the model and the serial number of the disks currently plugged in, which are unique if you use both of them (if you use only serial number, ...
Devorious's user avatar
0 votes
1 answer
285 views

Use WinSCP or any other program (cmd) to download from SFTP [closed]

How to use WinSCP or any other program (from command-line) to download files from SFTP with authorization key? This is for Windows versions 10 and 11. I am trying to download files from command prompt ...
Codename K's user avatar

1
2 3 4 5
27