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

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

0
votes
0answers
16 views

Open exe from Windows Registry doesn't work

I need to start my application on Windows startup. I used this command to set the registry: reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" /v "ProgramName" /d "...
0
votes
1answer
32 views

How do I find files containing “string A” and NOT containing “string B” and output their names into a file?

I was looking at this other question, but wasn't sure how to combine these queries together. I started off with this, but it doesn't seem to work: findstr /S /M "string A" *.vb | findstr /S /M /V "...
3
votes
1answer
20 views

find or ls does not list all files in a folder in MacOS (HFS+)

ls or find command do not seem to locate all files located in a specific folder. I'm running a Mac (under El Capitan 10.11.6 (15G21013), 500GB SSD, HFS+). In one of my folders, where I have about 700k ...
0
votes
0answers
6 views

Save chrome's state at specific point or setup chrome account from command line entirely

When you sign in to chrome, you can save several thins like extensions, bookmarks, tabs, passwords etc. So whenever you sign to your account elsewhere, you can have the same setup as you worked on ...
1
vote
1answer
16 views

wmic output empty when run from batchfile, but contains info when run from cmd

I have this wmic command which finds out the PID of my process and works fine from cmd, but refuses to produce output when executed in a bat-file: wmic /output:process.pid process where (Name like '%...
2
votes
2answers
42 views

Windows 7/10 command line show running Applications/windows

I know the command tasklist is able to show running processes. What I want the command line to show only running applications. Is there such a command on Windows or is there a way to get this list ...
1
vote
1answer
17 views

cmd git command runs git installer

I used git for years now and recently after updating windows and git each time I type git commands in cmd window, it runs git installer. git status ► runs git installer instead of showing the status ...
3
votes
1answer
135 views

7za create AES256 password protected encrypted zip of a folder

I want to create an AES256 encrypted zip of a folder. I am on Mac and I want to create the zip file and store it in an external drive. I want to AES256 encrypt the file in case I lose the external ...
2
votes
1answer
26 views

Duplicating stderr output and merge with stderr in bash without changing order

I want to write both stderr and stdout to a log file, and print stderr to the terminal (or default output device). Motivation: I have a command in my crontab, and I want to log all of its output to a ...
0
votes
0answers
11 views

How to open Microsoft Word file on a given monitor and maximazed, via command line?

My desktop computer has three monitors. I want to open a Microsoft Word file via command line, but using parameters that allows me to open the file in maximazed form (ocupping the whole screen) and ...
0
votes
1answer
41 views

Why doesn't find work recursively with a wildcard over SSH?

I'm connected to a CentOS server through SSH from macOS. When I try to find with a wildcard at the beginning, it seems to only search the current directly, no recursion. But if I put the wildcard at ...
0
votes
1answer
25 views

Use fc.exe in batch file to separate new lines from old lines

I have two text files mount.txt and mount2.txt and I've been trying to separate new lines (lines that were not in mount.txt but are in mount2.txt) from old lines (lines that were in mount.txt but are ...
5
votes
1answer
80 views

How to toggle Wi-Fi in Windows 10 via the command line?

If I try to connect to a wireless network using netsh wlan connect when the Wi-Fi toggle switch is off, the following error is displayed: Function WlanGetAvailableNetworkList returns error ...
1
vote
1answer
28 views

Control character 0x96 sneaks in when copying from or pasting to Git Bash terminal window

I'm on Windows 10 and I'm using Git Bash. When I copy from or paste into this window, sometimes are stray character (decimal 150, hex 0x96) appears in the beginning of the string. This character is ...
1
vote
2answers
48 views

Can't enable “Wi-Fi” interface via command line (Windows 10)

I'm trying to figure out how to enable the "Wi-Fi" interface in Windows 10, so that I can connect to a wireless network later using netsh wlan connect. After starting cmd with administrative ...

15 30 50 per page