67

7zFM.exe is the main file you want Technically this is the "File Manager", but I would generally describe this as the "7-zip application" Use this .exe if you want to open a .7z (or other) archive, explore it's contents, extract all or some files/folders Use 7zFM.exe when double-clicking a .7z file and Windows asks you to choose a ...


4

Objects under ~\AppData\Local\Microsoft\WindowsApps are not files – they are execution aliases, implemented through reparse points. They're a bit like symlinks or junctions, in that they they only point to another file within a specific application package, although they include some additional metadata about the package and they only support being executed ...


3

CMD and Powershell are different technologies from different eras. Most of the CMD syntax rules go back to the '80s. Powershell is an entirely different shell designed to compete with an entirely different class of software ( ie bash). as such, it needs a more sophisticated syntax, and MS took the opportunity to implement one, both for efficiency, and to ...


3

TTL time has to do with traversing from point A to point B on the internet. No one has a TTL, and the route taken between the points may vary, even on each ping (although rarely). Read about ping, where TTL is defined as the number of network hops that the probe traversed. However, the little twist here is that the TTL number that you see is set to its ...


3

FTP (like http) is unencrypted. FTPS adds encryption (like https). The walkthrough you linked to is for ftp, and specifically turns security (SSL) off, so even if you can connect via ftps it still wont be encrypted - which means any party between you and the server can intercept the traffic (and get your password). In order to secure your connection you ...


3

A pipeline takes the output of one command and uses it as the input to another command.  So there are two problems with what you tried. The cd command doesn’t produce any output1. file * doesn’t take any input.  You might say, “Of course it takes input; it reads (part of) all the files.”  But it doesn’t read standard input.  If you type file *, it just runs ...


2

You can also use sudo env PATH=$PATH ...rest_of_command_here.... Since that's not so convenient to type, I've added an alias alias sudop='sudo env PATH=$PATH'. The sudop (rather than aliasing sudo itself) is a reminder to me to make me aware that I am preserving my current environment path.


2

The 'mysql' tool uses the common getopt_long() function to parse its command-line arguments (or at least emulates its behavior closely enough). In both getopt() and getopt_long(), the space is never required – if the option is defined as taking an argument, you can always just stick the value right next to the option. (Though, keep in mind that not all ...


2

For Windows 10, there are multiple ways to change the default CMD path; one of these might also work on archaic versions. Using a Windows shortcut: Right-click a folder (or desktop). Select New > Shortcut. In Type the location of the item, enter cmd.exe, click Next and Finish. Right-click the new shortcut and select Properties. In Start in:, enter C:\...


2

.?* is not "a wildcard" in PowerShell. The -Replace operator in PowerShell doesn't use wildcard matching, it uses regular expressions. In regular expressions, . will match any single character except a line break. ? and *, as well as + are quantifiers used in conjuction with . or other, more specific, matching characters. So that: '.?' matches ...


2

Yes it could be evidence of a virus or malware Yes you may be able to get back the command prompt by doing the following: Run powershell as admin Run the command sfc /scannow It will repair missing or corrupted system files.


2

Perhaps your file is being run, and the problem is that it doesn't output a valid HTTP response? I'd fix that first, though I'm not sure if the file is being run or not. This is close to the minimal response: #!/usr/bin/env perl print "HTTP/1.1 200 OK\r\n"; print "Content-Type: text/plain\r\n"; print "\r\n"; print "test\r\...


1

I kept fiddling and worked it out: -replace 'foo=.*?.*', '' Adding the extra .* after the original wildcard made it work. OK now I have hours and hours of work to do ;)


1

To understand what's going on, you have to make the distinction between "Windows GUI Apps" and "Linux (X) GUI Apps". Everything that you mention that opens is a Windows application. It's important to note that this answer is only for the current released version of WSL. Later this year, WSLg is scheduled to be released with the 21H2 ...


1

It sounds like your program consists of multiple processes. The initial process that was run from the command line spawns a few child processes (probably to handle different tasks, or to make use of multiple CPU cores). However, on exit, the initial process only signals for all its children to exit but doesn't care to wait, it just exits first. Your shell ...


1

While in CMD you are really just accessing the environment variables, in PowerShell, you are working with a whole Environment drive. There is a lot more logic behind it, which gives you more opportunities and more flexibility. You can read more about environment variables in PowerShell here and here. Just some examples: The Environment drive Env is listed ...


1

Why did Microsoft exclude .ps1 files from PATHEXT (i.e. stop them being run directly)? As already pointed out in the comments, likely security. PowerShell is a relatively capable automation tool with a number of built-in Cmdlets, including ones that can affect Windows or be used to download files from the internet. Disabling PowerShell by default helps ...


1

There isn't a program that does this for you, build-in in windows, but given what you ask is not very large, you may find this answer acceptable. You can create a share on one of the computers, and share a text document. On the remote computer, you first need to map a network drive to access the share. This can be done using net use x: \\pcname\share where x:...


1

The MSVC compiler is named cl.exe and can be called via the command line. You need to ensure that its folder is found in the PATH, where it should already have been included by the installation. Typically, this folder is in the subfolder VC\bin or VC\Tools\MSVC, depending on the Visual Studio version. You may need to search for the file cl.exe to find its ...


1

Basic classical scripts are often more practical than vbs or powershell scripts: there are no dependencies nor prerequisites to check, just put it in a cmd file... I would rather use this command on W10 (should work on Win7 as well but I didn't test): for /f "tokens=2 delims==" %%A in ('wmic.exe printer WHERE default^=TRUE get name /VALUE') do (...


1

if your stuck after using sudo su as root: to exit use this command su -l <user_name>


1

A colleague and I found a powershell solution that requires no admin rights, and does not show any prompts. You can use the name of the font-file to install and uninstall. This makes it especially useful for scripting. I posted it over at stackoverflow: https://stackoverflow.com/a/67903796/1635906


1

You can use this command: for /l %g in () do @( <your-command> & timeout /t 1 > nul ) This prevent the timeout command to write "Waiting for n seconds ..." so it's kind of silent.


1

How do I do it with a single command? Use brackets: @echo off setlocal enabledelayedexpansion @for %%I in ("foo") do ( reg delete "HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Run" /v "%%~I" /f reg delete "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" /v "%%~I" /f REM add more here ...


1

If you have GNU split you can use something like nc -ul 7954 | split -b 10M -d - data.dat. See man split for more options. With POSIX split you would have to use alphabetic suffixes instead of numeric ones. At the time of this answer, the question does not tell how long or for how much data the command will run or how the resulting files will be used. This ...


1

Note the second link ("about stopping searches at the first positive in a path tree") is not really relevant because a solution that ignores it may empty ./path/to/foo/again/foo and then empty ./path/to/foo; or it may empty ./path/to/foo first and not get to ./path/to/foo/again/foo at all (because this path does not exist now). In any case the goal ...


1

Find directories named foo and -prune them. find . -type d -name foo -prune find does not add trailing slashses. If you really need them then: find . -type d -name foo -prune -exec printf '%s/\n' {} + Your find may or may not support -printf primary. If it does then you can avoid calling an external printf executable. E.g. with GNU find: find . -type d -...


1

In PowerShell, you can achieve your syntax like this: "C:\Playlist.m3u" | %{notepad.exe $_} "C:\Playlist.m3u" | %{&"C:\Program Files\VideoLAN\VLC\VLC.exe" $_} It pipes the path to the invocation of the executable and adds it as an argument.


1

So Windows applies a concept called "File Type Associations" or "Default Programs" or "Default Apps" depending on your version, but they all do the same thing. they associate a files extension (eg m3u) with an application and optionally a set of arguments. The goal of a file type association, is to allow you to simply open a ...


1

I have a folder which has many subfolders in it containing Word documents. I want to merge Word documents within a each folder and then merge the resulted merged documents created in each of folders into one large document. The below code is merging documents in a folder and when I perform a loop and add this above for loop to go in each subfolder and create ...


Only top voted, non community-wiki answers of a minimum length are eligible