Questions tagged [command-line-arguments]
The command-line-arguments tag has no usage guidance.
330
questions
0
votes
1
answer
30
views
Is there a command line tool to copy files to a specific directory on multiple remote computers?
Is there a command line tool to copy files to a specific directory on multiple remote computers. The path is from C:\temp\text.txt to c:\users\first.last\appdata\roaming\microsoft\windows\start menu\...
0
votes
0
answers
75
views
Can the Windows 11 Clock App start a timer via command line?
I have discovered that I can open the Timer page in the Clock app with this command:
ms-clock:timer
Can I start a timer automatically by passing other parameters? Something like this (hypothetically)
...
0
votes
1
answer
106
views
How to reset default WindowsApps permissions per-app instead of for the folder
I seem to have messed up my WindowsApps folder badly, but managed to restore it using a previous question. This fixed and added the proper permissions for the WindowsApps folder ITSELF, but not the ...
1
vote
0
answers
25
views
On Google Chrome, is there a way to start with a new Google Account profile on Windows command line?
I'm using public computers.
On Google Chrome, is there a way to start with a Google Account profile on Windows command line? This account is new to Chrome, since what I want is to login into a browser ...
0
votes
0
answers
34
views
Is there a way to know what happens at command prompt when we copy and paste a file from one location to another?
Is there a way to know what happens at command prompt when we copy and paste a file from one location to another? I.e. I use Ctrl+C and Ctrl+V to copy and paste a file from one location to another ...
1
vote
0
answers
74
views
"Cold Turkey Blocker" lock CLI (command line) is not working
I am trying to run the command:
The “Cold Turkey Blocker” lock CLI (command line) is not working.
"C:\Program Files\Cold Turkey\Cold Turkey Blocker.exe" -start "Block" -lock 2
The ...
0
votes
1
answer
144
views
Sending EOS pipeline gstreamer
I have an example gstreamer pipeline: gst-launch-1.0 v4l2src device=/dev/video2 ! image/jpeg,width=1280, height=800, framerate=30/1 ! v4l2jpegdec ! queue ! v4l2h264enc extra-controls="controls, ...
0
votes
0
answers
317
views
I'm trying to install whisper.cpp but the conversion of the data set fails
I have downloaded this script
https://raw.githubusercontent.com/ggerganov/whisper.cpp/master/models/convert-pt-to-ggml.py
to convert datasets used by Whisper from something compatible with C++. ...
0
votes
1
answer
56
views
Musescore 4.0.1, A batch job issue with .mid file conversion to .wav files
Issue & Scope of the problem
I followed the instructions here to preform a batch operation with Musescore Version 4 on Windows 11 CMD. Used a .json file just like in the highlighted example (below)...
0
votes
0
answers
7
views
Is There a Command Prompt to List the Contents of X:boot Subdirectories [duplicate]
At a command prompt in my \boot directory I can see 3 subdirectories.
One appears to be named . and the second ..
I'm doing due diligence and would like to explore if they contain files or not..
Is ...
0
votes
1
answer
162
views
`ping -c` in Windows: output error `Bad value for option -c.`
I am learning ping utility in Windows 10 and when I try to run command in shell:
ping -c 3 example.com
I get the result:
Access denied. Option -c requires administrative privileges.
After executing ...
2
votes
1
answer
108
views
How to print o ouput txt request result from curl command
we used this curl command (Windows 10) to check conection status to URls:
curl -v https://techdocs.broadcom.com 2>> C:\Temp\ResultadaoURL.txt, and this result:
* Trying 104.18.32.150:443...
* ...
1
vote
1
answer
37
views
sed in bash: '-n' as input is treated differently?
I'm struggling with a problem with sed in bash which occurs both on macOS and Ubuntu. During a long debugging session I pinpointed it down to this minimal example:
echo "abcde" | sed 's/.*/x/...
0
votes
2
answers
71
views
What are these Windows filename transformations?
i use Windows 7 x64.
If i right-click on folder called C:\Longer than (3) and click "Send to" and send it to an .ahk file that simply shows the arguments it received, it shows C:\LONGER~3.
...
1
vote
0
answers
182
views
How to let Task-Manager of Windows 10 start minimized at start-up?
I have the Windows task mananger in the start-up/autostart directory, so that it does start at login.
C:\Users\[myusername]\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup
Type: Taskmgr....
-2
votes
1
answer
62
views
How do I properly add parameters to program called within a windows command shortcut?
How do I properly add parameters to program called in a windows command shortcut?
Passing parameters to the console alone, is trivial:
cmd.exe /h
... but what if you want to both open a console &&...
0
votes
0
answers
85
views
How to get links opened from an external application open using specific command line arguments?
So, I have been trying to disable the browser feature which prompts me to enable or disable caret browsing when I hit F7. This is incredibly annoying as I use F7 for another application, and I never ...
0
votes
0
answers
19
views
MAC OS - Create Shortcut/Application to a command line [duplicate]
I have a .jar file that has to be ran with quite a few command line arguments, so each time I need to run the application I have to open the terminal and write/copy the command to start it.
Ideally I ...
1
vote
1
answer
24
views
Need help deciphering the path on a Windows shortcut's target for printing PDF files direct to Canon print driver
I have a Canon printer (imagePROGRAF TM-305) that has direct print software that creates a link on the desktop that allows me to drag and drop a PDF file on top of the link icon and it goes direct to ...
1
vote
1
answer
137
views
PowerShell, Pass multiple files and folders to a PowerShell script via a SendTo shortcut
I would like to have a shortcut in SendTo that points to a PowerShell script such that all selected items in File Explorer are passed to the PowerShell script as arguments. This would be extremely ...
0
votes
1
answer
457
views
How to show the tree of a root folder only for the first child level, and then show for just one of the children the second child level as well?
Setting down a guide about a repository, it should help the reader to look through folders and files in only that sub-folder which makes the core of the task at hand, and without any sub-sub-folders. ...
1
vote
0
answers
411
views
launch a single Edge tab with proxy server
I am using mitmproxy on windows 11 in standard mode it is listening on localhost:8080. I don't want to reconfigure my system proxy. I just want to reconfigure my proxy for one browser tab (or new ...
0
votes
1
answer
138
views
Executing BAT command when using folder names with spaces (Server 2019)
Hell all, I have a bat script that attempts to run 3 different programs, but one of them does not work properly. Below is the current script, where the first 2 item run normally but the last item ...
0
votes
0
answers
542
views
Command line to Silently remove Google Chrome APPs (PWA)
I need to remove all Google Chrome APPs (PWA) using the least effort possible.
Once I'm managing almost 12.000 workstations, I need to do it centrally, by using a CMD/PS1 to accomplish it.
I've been ...
0
votes
1
answer
33
views
Terminal commands to color differences between two files
I have two text files that I want to highlight the differences of in a red color for testing purposes. I am feeding a series of inputs into something.py file and outputting its results to out.txt.
cat ...
0
votes
1
answer
227
views
Does shutdown.exe take decimal for the reason codes?
I've got the following command:
shutdown.exe /s /f /t 0 /d 0:19 /c "Honeypot Activated"
/s Shut down and leave the PC locked
/f Disregard unsaved work
/t 0 Do so immediately
/d 0:19 ...
0
votes
2
answers
339
views
How to logs result to file AND display when using W10 CMD.EXE? [duplicate]
When using Windows 10 command prompt, i know i can log the results to file by doing this :
dir c:\ > results.txt
But problem is, doing this , the results are NOT displayed on the screen.
Is there a ...
0
votes
1
answer
4k
views
Firefox: how do I configure kiosk mode?
Mozilla's website states:
Numerous features of the kiosk mode are configurable through policy or
command line parameters when launching the browser.
However, other than a single example to run kiosk ...
0
votes
0
answers
84
views
Is there a way to Name a specific Chrome Window on startup?
I would like to be able to open chrome, either by clicking on the chrome.exe or by clicking on a URL, and as a result, chrome would launch with a specific window name.
I just want to have my chrome ...
0
votes
0
answers
189
views
what is the equivalent of ctrl+h (find and replace) in cmd command line
I need instructions specific to the command line (Windows 10) to modify a text file, by replacing a word with another word I thought of the for loop but I did not find a command to modify a file text?
...
1
vote
1
answer
375
views
Starting VSCode with WSL Distro (from command line.)
is there a way to launch vscode from command line, and to tell it to start a new WSL window (using the default WSL distribution.)
I don't see an option in the CLI, and regardless of whether I launch ...
1
vote
1
answer
135
views
Reimplementing lrzip decompress on Windows explorer using WSL
I've downloaded an old version of lrzip decompressor for windows and noticed that it's using the cygwin libraries in order to run the program itself.
The benchmarks comparing WSL2 and cygwin say that ...
1
vote
0
answers
29
views
How to pass the arguments while executing a script where variable name is not known?
I have a script, when i execute it ask couple of arguments one by one.
[home]$ ./script_name
User> *input here*
Password> *input here*
Authentication ID> *input here*
Success !!
Select the ...
-1
votes
1
answer
341
views
Windows 10, cmd start with & in the command path
I'm now using OneDrive for work. This has caused me some problems with a specific command that I have pined. The OneDrive path now contains spaces dashes and an ampersand.
C:\Windows\System32\cmd.exe /...
0
votes
0
answers
1k
views
Windows Shortcut with Relative File Path
I have created a tool that uses Google Chrome App Mode to work. In order to access it, I have a shortcut to google chrome that opens the specific html page. Currently, I have an absolute path, but I ...
0
votes
1
answer
3k
views
How can I run a powershell command as admin programmatically?
I want to run a powershell command as admin through programming languages as VBScript. I have seen this stackoverflow answer but Start-Process only runs executable and not really a powershell command ...
2
votes
1
answer
2k
views
Start Command Prompt always as admin through Windows Terminal
How can I make Windows Terminal always run Command Prompt as admin so I can issue elevated commands?
0
votes
1
answer
872
views
Command Prompt Shortcut .lnk That Runs Program
You can set up command prompt shortcuts so that the window has specified colors, sizes, and locations on the screen. I have many of these set up for many different programs that I like to see all at ...
0
votes
1
answer
267
views
Regex in youtube-dl arguments
I want to extract two paths from the youtube-dl arguments, the output template and ffmpeg location
-o (.*%\(ext\)s).* --ffmpeg-location (.*)
With the regex above I am able to capture both the output ...
4
votes
1
answer
1k
views
Command line arguments: How to launch 7zFM.exe like the context menu does, so that prepared 7z GUI appears?
7z file manager (7zFM.exe) can be launched via context menu.
This conveniently produces the 7z GUI already prepared for archiving. All I need to do is change the archive name and maybe add a password....
3
votes
2
answers
8k
views
Is there a way to view or store file history (like browser history) in Linux?
Is there any way to "view" (or) "store" file history (similar to browser history). For example if I have 10 files, and I open 2 of them, the following 2 details should get stored ...
1
vote
1
answer
1k
views
Passing list of file paths in variable as arguments to command
Scenario:
kdialog --menu takes a list of strings of the form title element label element label .... Now, the issue with this is that spaces are used as delimiters.
Let's say I have a string variable $...
0
votes
1
answer
55
views
Running system rm -rf on an online compiler
I have not written the command using proper syntax in order to prevent any accidental misfire
I recently read about the danger of using the command rm -rf in root directory but was wondering about a ...
0
votes
0
answers
67
views
Windows 10, cmd, schtasks, varying arguments
Let's say that a given scheduled task simply runs a batch script (*.bat or *.cmd).
Is it possible to pass varying command line arguments to such script?
With "varying", I mean, the arguments ...
0
votes
1
answer
391
views
List of JSON strings as command arguments
I've been working with GitLab CI recently to automate some busy tasks, namely auto releasing binaries for version tags.
For those who don't know Gitlab CI, it is very straightforward. It pulls the ...
1
vote
1
answer
1k
views
Using ffmpeg on Raspberry Pi to grab video from RTSP: "-t command not found"
I am trying something that should be simple - trying to use the Raspberry Pi ffmpeg to grab a 30 second video from an RTSP stream. The command looks like this:
ffmpeg -i <rtsp:...> -t 30 <...
0
votes
1
answer
263
views
What is the equivalent of shell variables $@ in windows command?
I want to put a variable in my command batch script for multiple arguments as the number may vary. Just as in shell we use $@. I tried several things but nothing is working.
[Edit : I know %* works, ...
0
votes
1
answer
176
views
WSL translate W10 CLI switches into Linux?
I'm trying to install Veracrypt and run it (mount volumes, etc.) from a script run in WSL (Python but can call a BASH script obviously).
As documented here, I've encountered a problem trying to use ...
0
votes
1
answer
1k
views
How to use Linux to Partition and Format a blank external hard drive where the partitions were lost
I need some help rescuing a new and blank 4 terabyte external SSD USB hard drive.
The original partitions were 3.64T and a 0.36 partition labeled "Microsoft Partition"
Using GParted, I ...
1
vote
1
answer
424
views
bash command: How to automatically enter menu choices that come up later during installation?
During apt-get install -y python-catkin-tools on Ubuntu you have to enter timezone numbers 8 for the region and 7 for a city when "tzdata (2020f-0ubuntu0.18.04)" gets installed.
How can I ...