Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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
9 views

Lost Admin privileges

I am using a window 8 pro hp, My computer has logged me out of all administrative privileges including command prompt. I tried turning active the hidden administrative account but it returns with an ...
0
votes
1answer
11 views

how to change directory and spin off process

I know how to change directory: cd path I know how to detach a process: command &, nohup command > /tmp/test_output.txt 2>&1 &, nohup command > /dev/null 2>&1 &, ...
1
vote
1answer
18 views

Windows no longer boots up: bcdedit command likely at fault

I was trying to dual-boot Windows 10 and Ubuntu when I ran into a problem: My system would immediately boot up Windows without bringing up the familiar GRUB menu that gives me a list with Windows or ...
1
vote
1answer
10 views

Getting echo output and replacing backslash with forward slash

I have a snippet of batch script code that works: echo %tmpfile% for /R %1 %%G in (*.go) DO ( echo %%G | findstr /i "test mock" || ( rem filter out "test" files gocyclo "%%G" >&...
0
votes
0answers
14 views

Is it possible to add blank lines in between results when using Spunk CLI search?

I'm using RHEL 6.10 and using the Splunk CLI to find "transactions" (groups of results together). It is searching for rtvscand log lines. /opt/splunk/bin/splunk search \ 'syslog_source=rtvscand | ...
0
votes
1answer
27 views

Extract substring after a character if it exists, else returning the whole string, in CMD

I'm trying to find the simplest way to, in CMD, extract after either / or \, whichever comes last, if either are found, in a string. For example: Input apiserver_sdk Expected apiserver_sdk or ...
0
votes
1answer
22 views

Create directory listing in Windows commandline with Special characters

How do I create a directory listing on the commandline contaning the correct character setting, meaning, Umlauts like äöü are still correct, if I open the output in an editor? I tried dir /b > ...
0
votes
2answers
34 views

How I can check that I have a password for login to my notebook

How I can check that I have a password for login to my notebook, but no using method to log out and log in to see if it requires password.
0
votes
2answers
27 views

Get element in CSV file, make it an integer and add it to the beginning of the line

I have a CSV with hundreds of entries and I'm trying to do the following: 1. Get the first element (decimal number, ex: 1.01) 2. Remove the decimal part of the element (ex: 1) 3. Add the new ...
1
vote
2answers
29 views

How to center a text in a batch output?

I'm implementing a batch program that execute some different things in different steps. For each step, I want to display a "friendly" text header like this: *******************************************...
2
votes
3answers
69 views

Why robocopy still copy an open file, opened by txt editor in windows

From wikipedia, it is told that robocopy will skip copying files in open status. However, when it is under test for robocopy behaviour, the robocopy still copy the opened file by the most simple text ...
0
votes
0answers
16 views

How to create multiple folders automatically as per file names in Windows 10 using CMD? [on hold]

Multiple files with the same name is to be placed in a single folder Need to create folders as per the file name. For Example, if there are files A.pdf, A.doc, B.doc and B.pdf inside a folder. I need ...
1
vote
0answers
15 views

How to open archive subfolder with winrar in command line

I would like to launch WinRAR interface in a subfolder of an archive. How should I do ? This works: C:\Program Files (x86)\WinRAR\WinRAR.exe D:\backup\archive.zip This, works with 7-zip but in ...
0
votes
1answer
21 views

Why can't I see a separate curl file along with all the libcurl files after building it from source?

I downloaded the source file from https://curl.haxx.se/download/ (curl-7.59.0.tar.bz2) to build the curl command line tool, or so I thought. I followed the instructions on curl's site (./configure, ...
0
votes
0answers
15 views

Lid close script.

Hello guys I am writing the cmd script for setting lid close to action Sleep. What I`he got. powercfg /setacvalueindex scheme_GUID sub_GUID setting_GUID setting_index powercfg /...

15 30 50 per page