Questions tagged [command-line]

An interface for interacting with a computer using typed commands in a text-oriented environment, as opposed to a graphical user interface (GUI).

Filter by
Sorted by
Tagged with
0
votes
0answers
18 views

Install-ProvisioningPackage powershell command fails

For this project I am on, I am utilizing PowerShell to programmatically install provisioning packages onto a Windows 10 install. I am using the Install-ProvisioningPackage command. This has been ...
0
votes
0answers
14 views

Find content in folder and all subfolders that are *.txt and replace a string - Windows Batch [closed]

I have some .txt files that include the string "abc_" where I need to exchange that within the same file to "cba_". I only know the 354 strings names and those I'd like to replace ...
0
votes
0answers
10 views

Extracting one frame of every 60 seconds in a video using FFmpeg looping through all MP4's in a folder

I found this Extracting "one of every 10 frames" in a video using VLC or FFmpeg and was trying to use the solution there to create a batch script that would loop and do this for each mp4 in ...
2
votes
1answer
16 views

Change extension for all files in a folder & its subfolder

I am using XCOPY the following successfully copies the entire contents of \MY SKETCHES 2021 to \My Sketches (TEXT). This is my command: xcopy C:\Users\terry\Dropbox\Electronics\Arduino\SKETCHES\My ...
8
votes
3answers
2k views

what does "2>&1" do when posted BEFORE 1>x?

i know what command 1>/dev/null 2>&1 does, but what, if anything, does command 2>&1 1>/dev/null do? because i still see stderr errors with the 2nd command, so it doesn't do what ...
0
votes
2answers
37 views

Make OU's Add users to AD, make Groups and add users to groups PowerShell

I'm trying to write a script, but it stops working after making all OU's. The OU's are all made perfectly only the users and groups don't get created which in turn doesn't add the users to the ...
0
votes
1answer
15 views

How to make apache service run continuously from script file from docker?

I am trying to run apache2 service from .sh script from dockerfile. The 'sh' script contains 3 executable commands which is presented as below: #!/bin/bash export DISPLAY=:0.0 echo "pvw ...
0
votes
2answers
59 views

How do I pause my batch script without having to add a pause command?

Sometimes I need to do certain Windows tasks as TrustedInstaller like copying, deleting, renaming, moving files/folders, etc. So I created this batch script that kills Explorer.exe and launches Total ...
0
votes
1answer
71 views

When I use Ctrl+R to search, the text "(reverse-i-search)" appears in the command

I don't know how to explain this one. When I use the Ctrl+R command in bash to reverse-search through commands, the actual text of the reverse search appears in the command itself. E.g., if I type ...
0
votes
1answer
36 views

Powershell/CMD continuous ping to file which is overwritten after X days

I've found a lot of examples of continuous ping and saving output to a file. But what i was hoping to find was how do I have the script rewrite the output file after every 7 days, thereby eliminating ...
1
vote
2answers
55 views

How can I use the result of file parsing as an argument to a bash command?

I use Linux and want to use a program named Trelby to open directly the latest saved file. The latest saved file is stored in the seventh line of the file /home/me/.trelby/state, which looks like this:...
1
vote
0answers
26 views

Is there any command line operating system which prioritizes user-friendliness over programming power? [closed]

Has anyone designed a command line operating system, with some standard applications like mail and Lynx web browser (or other), which is as easy to use as a mainstream commercial OS like MacOS, rather ...
0
votes
0answers
4 views

Why when encoding AVIF images with avifenc on slowest speed file size get bigger?

My source file is lossless PNG, 576x767, file size 1.26 mb. I experiment with encoding AVIF format and read, that higher encoding speed setting will run faster, but produce worse compression ...
0
votes
1answer
22 views

Export all saved wifi passwords from win 8 to external storage (usb)

Is there a command which I can use in command prompt to save all wifi passwords (on al interfaces) to an external usb? win 8.1
0
votes
0answers
18 views

How to stop Microsoft Store opening on file not found? [duplicate]

In example, if at command prompt I type python, without it being in path, then Windows will launch the Microsoft Store at Python's page. Is there a stop Windows from doing this, and get the usual '...
0
votes
1answer
31 views

Windows batch scripting: use absolute path with spaces to run terminal as admin

I have an issue when using absolute path in batch script. Script Code: powershell -c start -verb runas cmd '/c start cd "%~dp0%SomeScript.bat"' %~dp0% : absolute path to the script I want ...
1
vote
1answer
30 views

Trying to replicate tar output format on windows 10

I've been managing data at my work for over 20 years and we've always used tapes written with the unix command tar. The biproduct of this is a tar table of contents that I store for reference when ...
1
vote
1answer
24 views

Changing git default branch from master to main on command line (cli)

I'd like to change my default branch from master to main - I have done the following locally: git branch -m master main git push origin main git symbolic-ref refs/remotes/origin/HEAD refs/remotes/...
0
votes
1answer
43 views

How to delete a shortcut in cmd or powershell?

I want to delete file shortcuts using cmd or powershell but I just can't. Whenever I type dir into cmd or powershell they don't show .lnk files nor scripts languages can show them(as much as I have ...
0
votes
0answers
15 views

For each row of a given List, how to insert a checksum starting at column 1?

. Given: A command is working, see below. This command shows Meta data for each file. This command makes a List. The List has one Line (one row) of information for each file. A file is defined by the ...
0
votes
1answer
46 views

Batch file not getting the first 5 characters in drop file filename

I created a simple batch file that copies drop file in specific folder. This my batch script: rem This will create a BACK-UP DATA Folder in Desktop rem with a SUB-FOLDER which filename must be the ...
0
votes
0answers
23 views

Building a GraalVM native image from Apache ant

I am using a lot Apache Ant as a command line application to perform XSL transformations (https://ant.apache.org/manual/Tasks/style.html). The performance of this solution is not very impressive which ...
0
votes
0answers
18 views

Bat script for toggling extend display and clone display

I want to write a bat scripts that will toggle between DisplaySwitch.exe /extend DisplaySwitch.exe /clone These commands do what they're supposed to do, but I dont know how to implement a toggle. The ...
0
votes
0answers
33 views

How can I get the current user's environment variables from command line? not variables in the system

How can I get the current user's environment variables from the command line without including the environment variables in the system? I use %path% to get all of them, including the system ...
0
votes
1answer
16 views

Keep Color output with grep at systemctl status

I'm trying to get the original color of the output of this command with grep: sudo systemctl status telegraf | grep -e ● -e Active Output of command with this command the output is red, but i want it ...
0
votes
0answers
10 views

Does Linux top MEM% include SWAP memory?

If I have 8Gb RAM (and 8Gb swap) and I have a task which ate 2Gb of SWAP. In top I see %MEM memory usage column. It shows 10%. Does this mean that this task ate 10% of both RAM and SWAP (16Gb) or just ...
0
votes
1answer
25 views

cmd gives me an error i was unexpected this time in a batch rename loop

I am very new to cmd and I have a problem rename a batch of .jpg files. I found this script and it gives me the error i was unexpected this time. for i in *.jpg; do mv -i "$i" ${RANDOM}.jpg ...
0
votes
0answers
13 views

net user <name> <password> only works on first attempt [closed]

I'm stumped to be honest and ran out of all ideas and experiments. I have a C#/WPF app that programmatically calls the following 2 command in a row to update Windows 10 LTSC system password: net user &...
0
votes
0answers
40 views

How to open multiple files from different folders at once in cmd or powershell?

I have 4 folders inside my directory: f1, f2, f3, f4. Each folder has the same structure inside. I have to open a file contained in each folder with the same name (f1 has some other folders inside and ...
0
votes
0answers
30 views

Veracrypt windows partition encryption (FULL C DRIVE ENCRYPTION) with batch file (PowerShell command line)

I have crawled the whole net and havent been able to find the answer. I am trying to encrypt encrypt the c drive via VeraCrypt using a batch script. 'C:\Program Files\veracrypt\VeraCrypt Format.exe' /...
0
votes
1answer
23 views

CLI script works. Alias script broke. Corrective action is?

This CLI (Command Line Interface) script works. This script is 688 characters with spaces. This script shows: directories, files, totals in current directory and recursive directories (down the file/...
0
votes
0answers
28 views

Extracting a video via ffmpeg command line is not precise [duplicate]

I am trying to extract a video clip from an mkv file, but its not accurate. I played my mkv file and noted the point e.g. starting 00:06:20 till 10 seconds. Now I executed a command like this ffmpeg -...
0
votes
1answer
64 views

How to reduce the size of a 1080p mp4 vid file by downsizing to 480p mp4 format, using ffmpeg

I have a bunch of mp4 format video files to be uploaded and made available online for consumption of friends and family. The preliminary review of files show, they are over one GB each and their ...
0
votes
1answer
57 views

Fade in/out PNG watermark overlay on video

I have an FFmpeg command in a script that crossfades a main video with an outro and then overlays a semi-transparent PNG watermark on top of it. ffmpeg -y -i "$1" -i "outro.mp4" -i ...
1
vote
1answer
32 views

Can't escape this complex command correctly so it will run properly from the registry

I am creating a new right click context menu entry for all files. It's located here: HKEY_CLASSES_ROOT\*\shell\FileUtilities\shell\a_addtofolder It basically just adds selected files to a new folder. ...
0
votes
1answer
21 views

Force Chrome to open with specific command line switches

We've created a shortcut/lnk with the necessary switches, but this only works if the user clicks on that specific shortcut. Is it possible to force chrome.exe to always open with specific command line ...
0
votes
0answers
4 views

How to make jemdoc executable in Windows 10 command prompt?

I'm just trying to run jemdoc in Windows 10 command prompt, as explained here, by jemdoc -c mysite.conf index.jemdoc where, both mysite.conf and index.jemdoc are in the same directory as jemdoc. ...
0
votes
1answer
25 views

Can't install oh-my-posh, although I am an admin user?

after configuring my PowerShell and installing Starship.rs, I wanted to install oh-my-posh. The instruction on the website for this is Install-Module oh-my-posh -Scope CurrentUser. I tried this but I ...
0
votes
1answer
32 views

Poweriso doesn't accept parameter -add why?

I use CMD to run a command to make a .iso file. Based on https://www.poweriso.com/tutorials/command-line-argus.htm this should be a correct command set piso="%programfiles%\PowerIso\piso.exe"...
0
votes
1answer
25 views

more is wrapping the lines

I found the below function online (thanks to whoever wrote it}. The problem seems to be more is wrapping the output. I like the option to view output page by page but do not like wrapping. How can I ...
1
vote
0answers
38 views

Batch script git commit with dynamic comment

I am using a .bat file to commit a project to git and github. I would like it to take one optional argument that is the username of the person calling the file. That will be passed in using the ...
0
votes
1answer
15 views

How to set lockout duration to 0 by using command for windows?

Need your help, thanks in advice. For some reason, I need set the lockout duration to never / 0 for some Windows servers by using powershell or command. I find the command to set lockout duration, but ...
2
votes
0answers
36 views

Broken CMD, cmder, and powershell. Cmder is automatically executing commands on launch

I recently made a node.js project for the first time, and honestly I had to put my Windows 7 PC through hell trying to get it to run (more info below). However since then, my system has not been the ...
0
votes
1answer
42 views

How to set blank line before every new prompt for bash on cmder?

I'm using cmder as my command prompt in windows and also installed the ubuntu from Microsoft app store using subsystem layer for linux. How to set a blank line before every new prompt for bash on ...
1
vote
1answer
39 views

Excel with start thinks my parameter string is a file name

I have just finished writing my first-ever VBA program which is invoked with the following instruction: start excel "S:\stat\global\workgroup\BCDM\VBA\central_SDLC_doc_setup.xlsm" /e %1 ...
0
votes
1answer
17 views

Wait till program close to continue

So im trying to set up emulationstation to run my PS2 games via the retroarch core. I have this C:\Users\VODKAN~1\.emulationstation\systems\RetroArch\retroarch.exe -L C:\Users\VODKAN~1\....
0
votes
1answer
25 views

USB software to send commands to USB devices from the command line

So, I have this HDMI splitter with multiple modes. The software for it can be downloaded here. The problem is, not only does the software for the splitter have a GUI, it is also in Chinese. Luckily ...
0
votes
0answers
15 views

7zip CLI switches to achieve the same result then in the GUI

Most of the time I use the GUI for zipping stuff with 7zip. Now I have to batch for about 100 files. The result between the CLI settings and GUI settings is not the same. CLI Settings: 7z a -t7z -mx9 ...
1
vote
1answer
32 views

Can someone explain this property of the at and the tty command?

Can someone explain how this command : echo "/bin/sh <$(tty) >$(tty) 2>$(tty)" | sudo at now;tail -f /dev/null starts a root shell but this command : echo "/bin/sh" | sudo ...
0
votes
0answers
10 views

Is netsh interface available on win 8 and 8.1?

I want to export Wlan profiles from my old win 8 laptop. netsh wlan export profile key=clear will this command work on win8/8.1 ?

1
2 3 4 5
240