As of May 31, 2023, we have updated our Code of Conduct.

New answers tagged

0 votes

How to find public ip address in PowerShell from a restricted internet in windows 11

What if the whatismyipaddress.com or ifconfig.me is blocked? or A VPN connected. Goal is to find the public ip without depending these sites. You'll probably need to depend on some external site. If ...
user1686's user avatar
  • 416k
0 votes

Triggering the Windows Notification Center?

Per Microsoft to open Action Center, do any of the following: On the right end of the taskbar, select the Action Center icon. Press the Windows logo key + A. On a touchscreen device, swipe in from ...
DanteTheEgregore's user avatar
0 votes
Accepted

Enforce ProxySettingsPerUser=0 without open administrator's systemsettings panel

The missing finishing touch for the poster was to run the command: netsh winhttp import proxy source =ie Reference : How to set the proxy settings for all users when Cannot see Analytics data.
harrymc's user avatar
  • 445k
0 votes

Convert UTF-16 LE to UTF-16 LE BOM or to UTF-8 in windows via command line

The type command will work if the UTF16 file does not contain a BOM: type utf16.txt >ascii.txt But as in your case the generated file does have a BOM, a sure-fire method for converting the file ...
harrymc's user avatar
  • 445k
0 votes

How to start Zoom muted from CLI

I tired multiple options but we can't disable audio and enable video in URL schema Refer: https://devforum.zoom.us/t/opening-zoom-app-with-video-enabled-using-xdg-open-command-in-ubuntu-terminal-with-...
Ajith R's user avatar
1 vote
Accepted

Need Help creating a Right-Click menu entry

You can just place the .bat file somewhere, and add it to path. Then, when you want to organize a certain folder, just go into the folder (where all the files are located), click on the address bar, ...
explodingfilms101's user avatar
0 votes

Rar only certain extensions?

This compresses only .exe and .msi files: @echo off setlocal set "winrarPath=C:\Program Files\WinRAR" REM Change this path if WinRAR is installed elsewhere set "extensions=.exe .msi&...
Jim's user avatar
  • 1
0 votes

Removing mail accounts from local Windows users via CLI

I did some digging of my own in the meantime and I found a way to locate the registry keys that are generated when an account is linked, they are under HKEY_CURRENT_USER\Software\Microsoft\IdentityCRL\...
Mattia Mele's user avatar
0 votes

Seemingly impossible to extract URL string in between two text delimiters from 100's of messy Google News Alert emails with batch

so from everyone's input, I've been able to put together the following code, yet it still does not work as it will not parse out the '=' that is inherent in every line in a .eml file inbetween the two ...
user1798732's user avatar
0 votes

Windows: how to install driver from recovery command prompt?

The Origin Problem I encountered an issue where I had a VM (W2k12) on Proxmox and needed more than one driver. However, I didn't know which driver was required, and pnputil was not available for ...
djdomi's user avatar
  • 218
1 vote
Accepted

Unix cat and zip together

From zip(1) - Linux man page : zip also accepts a single dash ("-") as the name of a file to be compressed, in which case it will read the file from standard input, allowing zip to take ...
harrymc's user avatar
  • 445k
0 votes

Unix cat and zip together

This probably isn't what you really want but you can do this. mkfifo zip.pipe # create fifo cat File2022*.txt > zip.pipe & # pipe data to fifo, in background zip --fifo ...
doneal24's user avatar
  • 633
0 votes

Start a Zoom meeting from the command line

Answer confno and pwd are the values to set in the zoom scheme (URL). I created a basic Python module to use for that: from os import startfile from urllib.parse import urlencode def meeting(number, ...
Elvin's user avatar
  • 11
0 votes

7-zip unzipping files via command line where the zip contains special characters

The Unicode character U+00eb is correct and is indeed the character ë, so it seems that everything is working right. I would guess that the person that is viewing the extracted files uses a wrong ...
harrymc's user avatar
  • 445k
0 votes

Timezone conversion by command line

I had a problem that many others probably share - my server (which works in UTC) queries a REST API in a remote server that is set to San Francisco time, and it returns date/time fields with no ...
Laurence Renshaw's user avatar
0 votes

I'm not understanding Query Session command

I've discovered the same (also a hashed listen session starting with 31c5c...) on my Win10 22H2 Clients (>100 Clients). Closest I got to uncovering what this is was: What is this hashed Session ...
Lukas's user avatar
  • 1
0 votes

How to start QuickTime recording at command line?

To start a QuickTime recording at the command line on a Mac, you can use the osascript command to execute AppleScript code. Here's an example script that you can use: tell application "QuickTime ...
Kamal Sawabi's user avatar
0 votes

What is the equivalent of Linux's "~" (tilde) in Windows?

In cmd.exe, you can make ~ work just like ~ in Unix systems with help of clink and its Lua scripts: Install latest version of clink. Download tilde_autoexpand.lua and place it in some directory, let'...
Destroy666's user avatar
  • 2,644
-1 votes

Closing focused program from the command line

AutoIt can do it. Just several commands. Look for: $pid=WinGetProcess([ACTIVE]) ProcessClose($pid)
Sterling's user avatar
0 votes

Adding Git repo and branch to Tmux status line

Like mentioned by @Jasha, the status line does not update when you change branches. However, Tmux has a window option called pane-border-status. Combining @Nathan Kot's answer with this option results ...
Geert Smelt's user avatar
1 vote

How to convert .reg files to PowerShell set-itemproperty commands automatically?

According to Microsoft reference, there is no -path parameter in the syntax of Out-File command on line 125, so you need to replace it with the correct one -FilePath: Change this line: $Commands | Out-...
Bobbiz's user avatar
  • 11
0 votes

Feedback when typing password at a sudo prompt

In /etc/sudoers (edit with sudo visudo), add the following line: Defaults pwfeedback Note: the other answer all mention env_reset, which is an unrelated option. Depending on your config, you might ...
Philipp Claßen's user avatar
1 vote

Using ffmpeg to download m3u8 video in two ways resulting in two vastly different sizes; Why?

The command ffmpeg -i filename_v2.ts filename_v2.mp4 recompresses the media. It's no longer the source data. Instead, when generating list.txt, drop the file and use echo "$i" and then run, ...
Gyan's user avatar
  • 33.6k
0 votes

Running PHP works in Command Prompt but not Git Bash

My git bash was pointing to PHP in my XAMMP folder. Reinstalling XAMMP corrected the issue for me. download XAMMP https://www.apachefriends.org/download.html
Andrew Magill's user avatar
0 votes

Mapped network drive unavailable on reboot until viewed in windows explorer (windows 7)

I had a similar issue and was able to workaround by adding the credentials to Generic Credentials in Credential Manager: cmdkey /generic:yourIP /user:yourUser /pass:yourPass
Daniel's user avatar
  • 111
0 votes

Mapped network drive resets on restart

I had a similar issue and was able to workaround by adding the credentials to Generic Credentials in Credential Manager: cmdkey /generic:10.0.1.145 /user:yourUser /pass:yourPass
Daniel's user avatar
  • 111
0 votes

Count files in a folder and subfolders with specific extension (.mp4) from the command line

(Get-ChildItem -Filter *.yaml -File -Recurse).Count (Get-ChildItem -Filter *.yml -File -Recurse).Count
yzorg's user avatar
  • 735
0 votes

Generate distribution of file sizes from the command prompt

I stumbled upon this question because I also wanted to view a distribution of my files sizes. In my case, however, I had no need for power of 2 buckets. I used a different bash command to view the ...
Marja's user avatar
  • 101
0 votes

Navigate to previous directory in windows command prompt

You can easily make a doskey macro to navigate to previous directory. rem test.bat @echo off doskey cdx=@echo off$tpushd %cd%$T$tcd $1$t@echo on doskey rcdx=popd cmd echo on Save the above code to ...
Faraaz Kurawle's user avatar
1 vote
Accepted

opensuse leap 15.4, installing apps from .ymp files (one click install) with the command line

What apps are you actually missing? The chances are they are available. Try running yast2 or yast2 sw_single and have it search for the required software. Anyway, try /usr/bin/OneClickInstallCLI or /...
Bib's user avatar
  • 1,155
0 votes

BATCH: Correctly interpret environment variables passed by user through set /p

To continue a command line in a batch script, you could use the escape character at the end of the line, like this : set /p target=^ %programdata% echo %target% To explain the difference between this ...
harrymc's user avatar
  • 445k
1 vote

BATCH: Correctly interpret environment variables passed by user through set /p

After enough hours of keyboard smashing, I've found a solution that works for me, using call to re-evaluate the input: >set /p target= >%programdata% >call set "target=%target%" >...
Luke Faez's user avatar
-1 votes

wsl' is not recognized as an internal or external command

$ENV:PATH="$ENV:PATH;c:\Windows\System32" usando esse comando ele vai achar o wsl no path
Wellington Felipe Santana Duar's user avatar
3 votes
Accepted

Expand variable to alias and execute

Is there a reason a variable cannot be expanded then resolved as an alias? When processing an input line, alias resolution is performed before variable expansion – not during or after. As the linked ...
user1686's user avatar
  • 416k
1 vote
Accepted

Is openssl is an alias for libressl on macOS?

The openssl binary shipped with macOS is actually libressl and not OpenSSL It's not just an Alias or Symlink, but the /usr/bin/openssl file itself is actually LibreSSL, there is no libressl to run (...
Yisroel Tech's user avatar
  • 7,598
0 votes

Using "find" to list only directories with no more childs

To find directories that have no subdirectories: find dir -type d -links 2 explanation: a directory has a link for each subdirectory in it, a link from its parent and a link to itself, thus a count of ...
mhmd's user avatar
  • 41
0 votes

How can I mass rename files?

PowerRename by Microsoft I recommend PowerRename, one of Microsoft’s PowerToys utilities. You can see how robust it would be in that it’s from Microsoft. PowerRename is a bulk renaming tool that ...
0 votes

colorized bash prompt overwrites previous command's output if the output doesn't end with a newline

A simple & elegant solution is to check if the cursor is in 1st column and issue a newline if that's not the case. I have already written this answer for another question, you can take a look: ...
Puspam's user avatar
  • 255
0 votes

Is there a way to display a countdown or stopwatch timer in a terminal?

Using the top answer, I created the following version that supports any precision: function stopwatch { local precision="${1:-3}" if [ "$precision" -eq 0 ]; then ...
HappyFace's user avatar
  • 1,018
0 votes

assoc-ftype does not work properly on windows 10

I found a solution for Win10 as to why sometimes assoc will be ignored and seem to not do anything. So I was trying to associate .webm files with ffplay.exe. So this is what I typed in CMD: ftype ...
programmar's user avatar
1 vote

Is the cd command temporary?

Usually the change is not temporary. It is permanent till next cd/pushd/popd. F: changes current drive to F: cd F:\ changes current path on drive F: to root (\), does not change current drive cd \...
pbies's user avatar
  • 2,737
0 votes

How to connect to other computer on same network without ssh?

If you do not wish to use SSH, you can install XRDP on Linux machines: Install xrdp: sudo apt install xrdp Enable xrdp: sudo systemctl enable xrdp Start the xrdp service (must be started each time ...
John's user avatar
  • 44.3k
0 votes

Seemingly impossible to extract URL string in between two text delimiters from 100's of messy Google News Alert emails with batch

Your example content for output string does not include the "=", in: ...d=1-2-333333-56543554.php If this is not intentional (a typo) then you can use: @echo off && setlocal ...
Io-oI's user avatar
  • 7,108
2 votes

Get Firefox command line startup command of currently running instance

Here is another way, which compared to the other answers has the added benefits of a) being OS agnostic b) working when multiple instances of Firefox run concurrently. Enable the command line of the ...
paa's user avatar
  • 742
0 votes

Seemingly impossible to extract URL string in between two text delimiters from 100's of messy Google News Alert emails with batch

With this text in input.html "widgets": [ { "type": "LINK", "title": "tmavomodr=C3=A9 =C5=w2q2wa blackblob, strih do A, obtiahnut= =C3=A9, blabla", &...
Hannu's user avatar
  • 8,547
0 votes

How can I prevent to run same batch file twice to allow only one instance?

2023... Windows 11's use of WindowsTerminal.exe (batch not run as admin on cmd.exe) @echo off SET _title=Prepare and launch POS and CCTV Client tasklist /fi "Windowtitle eq %_title%"|find /i ...
Andrew's user avatar
  • 1
0 votes

How to open chrome:// pages from Linux Terminal

Direct answer: Won't work (so far). Workaround: Used xdotool for X11 on Linux. Example code for xdotool: google-chrome --new-window && xdotool type 'chrome://extensions' xdotool key Return
Majal's user avatar
  • 794
2 votes
Accepted

How do I hide just the users/userName portion of the path in command prompt?

What you’re seeing is the path of the current working directory. Since the home directory of your user is located at your old username, that is the directory you are seeing when you first open command ...
jzm's user avatar
  • 56
0 votes

How can I put the computer to sleep from Command Prompt/Run menu?

As a PowerShell one-liner: (Add-Type -MemberDefinition "[DllImport(""powrprof.dll"")]`npublic static extern bool SetSuspendState(bool Hibernate, bool ForceCritical, bool ...
Jari Turkia's user avatar
0 votes
Accepted

How can I burn in .ass file and a watermark to a video file using ffmpeg simultaneously?

Not a big deal, you just have to add the subtitle filter: ffmpeg -i F:\ffmpeg\bin\video.mp4 -i F:\ffmpeg\bin\logo.png -filter_complex "[1]format=rgba,colorchannelmixer=aa=0.4[logo];[logo][0]...
Ricardo Bohner's user avatar

Top 50 recent answers are included