Join us in building a kind, collaborative learning community via our updatedCode of Conduct.

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).

-1
votes
0answers
11 views

Windows 7/10, Format and Restore functions leave hidden data [closed]

I am being harassed by an IT type who has managed to find himself in my 4 phones, and my entire home network He managed to create a Domain and incorporate my machines in his network. I finally was ...
0
votes
1answer
88 views

ffmpeg - merge images with video

I have a video with audio that I am trying to merge with 2 images - one image before the video starts and one image after the video ends - but right now I am getting this error -Stream specifier ':...
0
votes
0answers
9 views

Remove character from multiple files in command prompt

So I have two files in a folder, abcd1.txt and abcd2.txt. With command prompt opened in that folder, what do I need to enter to change them to abc1.txt and abcd2.txt (removing the fourth character)? ...
0
votes
0answers
22 views

How can I ON the check box “If the task fails restart every” checkbox under setting tab in windows task scheduler with schtasks from command line

I need to click the checkbox "If the task fails restart every" checkbox under setting tab in windows task scheduler with schtasks in windows.Below is working fine for creating and starting the task ...
0
votes
0answers
26 views

Adding a variable into a registry key

I need to create a registry key based on a users UPN name. I have set the environment variable, but the reg add command below does not work.SET UPN=whoami /upn reg add HKCU\SOFTWARE\Microsoft\...
0
votes
1answer
56 views

Why is FFmpeg video splitting of 595-600 seconds slow compared to 0-5 seconds? [duplicate]

I have to split a 4K 10 minutes video into 120 small video files, each containing 5 seconds of duration. I'm using ffmpeg for splitting the video. The splitting take a very very long time and the ...
1
vote
1answer
42 views

Running headless server on Windows via SSH

I'm currently working on a software project that allows remote installation via SSH. I transfer a small installer, and then a zipped archive of the main application. The installer will unzip the ...
0
votes
1answer
61 views

How can I get the extension(s) of a file based on its content?

I'm planning on downloading a bunch of images from a website that don't come with an extension, so I want to add one based on the file's content or mime-type.file <filename> does a great job ...
0
votes
0answers
20 views

Handbrake batch convert script assistance to set output extension specified by the official presets

With the help of numerous discussions on SE network and other places I finally managed to a working script that works well except the Matroska presets. I understand the problem is the script itself, ...
1
vote
1answer
20 views

Shell script: run screen, open several screens and run a command in each

Pretty much what the title says:My shell script shouldRun command A, wait until donerun "screen"run command B1 in initial screenopen new window (usually via Cmd-a-c)run command B2 in new ...
0
votes
1answer
19 views

Color specific filenames (not extensions) in `ls` output like Makefile or CMakeLists.txt

I am currently working on a C++ project. I am using CMake as a build system and I would love to have all the CMake related files (like CMakeLists.txt) colored differently in the ls command output. ...
0
votes
1answer
32 views

Transferring a file from one server to another server, initiated from a third computer

I'm trying to make a site to site transfer with the following configuration. I have an old server (server-A), the new server (server-B), and my workstation (wks), on which I'd like to launch the ...
0
votes
1answer
18 views

Start new cmd.exe from current command line in administrator mode

When I'm currently in a command line window and I change an environmental variable I have to reopen a cmd.exe instance. When I want to install a python package using pip from the command line I have ...
0
votes
0answers
18 views

Copy directory but not recurse

I want to copy a directory without recursing, preserving "everything", sort of like cp -a except that -a will do the unwanted recursing.The reason is I am making a script to copy/backup from an ...
0
votes
1answer
25 views

grep regex pattern matches on each line where only all matches appear and print on same line

trying to extract some patterns per line, from a log file.I am trying to extract the first time stamp, and two or three other matches but I want to be able to only print the matches from the lines ...

153050per page