Questions tagged [parameters]

In computer programming, a parameter is a type of variable that refers to a piece of data used as input in a query to a database or other data-storage table.

Filter by
Sorted by
Tagged with
1 vote
1 answer
49 views

zsh-syntax-highlighting writes parameter expansion in black

I have installed zsh-syntax-highlighting. This works well, except of one oddity: When I type a parameter expansion as a command argument, i.e. foo $PWD as soon as I type the $P, the parameter ...
user1934428's user avatar
-1 votes
2 answers
51 views

Windows Command Line Scripting - Prompt for value

I have a windows script that simply moves and renames files from one directory in to a series of subdirectories. I would like to have the script prompt the user for the date of the files. Currently I ...
psycoperl's user avatar
0 votes
1 answer
569 views

Booting from a persistent live usb on MX linux and enabling systemd?

I have created a Live USB with persistent storage using MX Linux since they offer a few tools which makes it easier. After booting and installing a bunch of applications I was not able to enable the ...
DarkDead's user avatar
4 votes
1 answer
1k views

How to create ECDSA keypair based on OpenSSL config file?

When generating CSRs based on RSA key-pairs I'm using the OpenSSL req command for convenience: openssl req -new -noenc -config 'server.cert.conf' -keyout 'private/server.key.pem' -out 'server.csr.pem' ...
meeque's user avatar
  • 55
1 vote
0 answers
11 views

Run one of two scripts based on the outcome of a check?

I have two GPO scripts that, in a nutshell: Close any existing instances of Chrome. Open a new instance of Chrome. Navigate to a webpage. The only thing is that one script checks the location of ...
Ben's user avatar
  • 1,186
0 votes
1 answer
113 views

how to handle complex bash parameters?

How can I consume parameters as complex as the "Terminology example" from the bash-hackers wiki, which doesn't cover it after presenting. mybackup -x -f /etc/mybackup.conf -r ./foo.txt ./bar....
gabriel's user avatar
  • 23
0 votes
1 answer
265 views

how to pass argument in powershell function

Why does this code not work, how do you have to pass the parameters? what am I doing wrong: cls function __main{ param( $apiEndpoint = $pathApi ) write-host $apiEndpoint } ...
zeros's user avatar
  • 263
0 votes
1 answer
525 views

SSH - quoting error when composing command line with ProxyCommand (bash)

I would like to use the ssh command in a bash script running on srcHost to remotely execute a command on a range of hosts (targetHostX). Some of those remote hosts are only reachable via a jump host (...
garreth33's user avatar
0 votes
1 answer
162 views

Need to use Encrypted Authorization code from http response & use it further in the code

I want to decrypt the below field "_id" from HTTP Request/Response (present in both) , parameterize it & use in my scripts below - set-cookie: _id=s%...
Deepika's user avatar
1 vote
0 answers
383 views

How should I adjust my monitor display timing parameters to achieve a horizontal offset?

I have a 2560x1440 31.5" monitor that recently stopped displaying in the rightmost 4" of the display. This corresponds to ~320 pixels of dead space, so I am trying to create a custom ...
Joseph Westra's user avatar
0 votes
1 answer
493 views

What are the command line parameters (options) for Microsoft's CMTRACE tool?

The CMTRACE tool is included in Microsoft's System Center 2012 R2 Configuration Manager Toolkit. It's a reasonably good tail tool. One of its downsides, however, is that it can take a very long time ...
RockPaperLz- Mask it or Casket's user avatar
0 votes
1 answer
176 views

Pass git stuck options with quotes as-is to a script

I'm trying to write a script that will be called as a git alias. The script is a wrapper around git merge, so I want to pass all it's parameters to git merge as-is when I call it in the script. The ...
CidTori's user avatar
  • 133
0 votes
0 answers
530 views

Call Batch Script With Parameters, Run It In Target Environment

I need to copy some files locally, on a remote server (Let's say it's in New York). That is to say, the files are already on the server, and I need to make a copy in the same frolder on that server. ...
David Sanchez's user avatar
0 votes
1 answer
80 views

Is it possible to get history of my computer details like RAM?

I gave my PC to an agency which repairs computers. I remember that my computer had 8GB of RAM and when get back my computer has 4GB of RAM Is it possible to retrieve a history on the size of the RAM ...
Ridden's user avatar
  • 1
1 vote
1 answer
2k views

non-interactive ssh-keygen in Windows PowerShell: create a key pair and avoid pressing enter for location and empty passphrase

In Windows PowerShell, with ssh-keygen, how to create an SSH key pair with a private key that has no passphrase (password), without having to confirm twice the empty passphrase, and without having to ...
questionto42's user avatar
  • 1,911
0 votes
1 answer
1k views

Windows 10, stop a service, but don't restart until reboot

I'm familiar with Windows 10's services.msc. I can click the stop button, and I can click the start button, but I want to divide and conquer to figure out which service is causing trouble and locking ...
The DOuGTrainer's user avatar
1 vote
0 answers
839 views

How to add .exe switches/parameters in Linux?

In windows, it's simple "c:\path\to\exe\program.exe" -option1 -option2 I'm installing and running games through Lutris to make using WINE for gaming easier. I'm trying to play SWAT 3. ...
Daktal's user avatar
  • 9
0 votes
2 answers
2k views

How to run scheduled task for the batch with 2 parameters?

I have a batch file which I need to run every 15 min. When I click twice on the batch I: Need to enter the name of test to run and It is always Scripttest.jmx, like this: Need to enter y in this SS: ...
Inna Shnaiderman's user avatar
1 vote
1 answer
2k views

pass parameters to batch file via File URI in Windows

Using Windows 10 here. Code in open_video.bat "%USERPROFILE%\Desktop\VLCPortable media player\VLCPortable.exe" --start-time=54 --stop-time=89 "%USERPROFILE%\Downloads\some_video.mkv&...
thanks_in_advance's user avatar
0 votes
1 answer
594 views

How to use multiple optional parameters in VBA

I am trying to do a simple UDF in VBA: I want to get the quarter of a date. I can do a basic version easily that works (I am French, so quarters are noted as trimestres and abbreviated by a T) : ...
Anthony Martin's user avatar
3 votes
1 answer
4k views

Is /min a valid switch for cmd.exe in Windows?

I'm looking at a few batch files (.bat), and they use use /min as a switch for cmd.exe. Looking at several references, I don't see /min as a parameter for cmd.exe. Is /min a valid switch for cmd.exe ...
RockPaperLz- Mask it or Casket's user avatar
0 votes
1 answer
370 views

Powershell Parameters: How to read order of user input

I am trying to determine the order in which the user enters parameters. So, using the following example: function RepeatParamOrder { [CmdletBinding()] param ( [bool]$param1=$false,...
Brian's user avatar
  • 977
1 vote
0 answers
672 views

How to create a Windows shortcut that passes the current folder as a parameter

In Windows 7-10, how can you create a shortcut that uses the current folder (directory) as a parameter? For example: Target: example.exe "%CD%" (where %CD% gets automatically replaced by the ...
RockPaperLz- Mask it or Casket's user avatar
1 vote
2 answers
2k views

How to Create a Configuration Batch file for VNC Server?

I made a batch file for VNC Server to make Windows 10 x64 automatically (Unattended). The software is properly implemented and installed silently, but unfortunately the configuration parameters of the ...
Mehdi's user avatar
  • 51
0 votes
1 answer
363 views

How to remove a parameter set in an alias from command line

I have an alias for "ls" set like this: alias ls='ls -lh' If at some point I wanted to perform a one-time regular ls without either of those parameters (without l or without h), how would I do that ...
OMA's user avatar
  • 1,650
1 vote
0 answers
1k views

How to improve postgresql query execution time

Problem Statement: we have a Enterprise product with Postgresql db as a backend. one of the tables has 5 columns and respective data type is (bigint time , bigint store_time , varchar category, ...
Nandhini Subburaj's user avatar
0 votes
0 answers
214 views

Cannot use Google Search Tools from one account in Chrome

I'm using 3 accounts in Chrome*, everything works fine for 2 of them. For the 3rd (default) one, the Google Search Tools components are not clickable. For instance, hovering the cursor over "Any time" ...
Déjà vu's user avatar
  • 655
0 votes
1 answer
214 views

Universal Command-Line Tool Wrapper

I have a program that calls GhostScript in the background by issuing a shell command with hardcoded(!) parameters. Unfortunately it is impossible to change that in a defined matter and the used ...
Robert Orso's user avatar
0 votes
1 answer
2k views

How to run CURL POST commands setting parameters dynamically from file in parallel OS independent?

I want to submit some hundred HTTP requests using CURL, preferrably in parallel. This request simply shall submit a value to a server. How can I do this OS independent? I started writing a .txt file ...
du-it's user avatar
  • 101
2 votes
2 answers
3k views

Create Powershell Alias w/ a Function incl. Parameters

UPDATED-STATEMENT: 20190815@000000@THU Working on creating a powershell initial profile for current user only and without running as admin that is authorized to run commands from from the ps-...
fohrums's user avatar
  • 520
0 votes
4 answers
6k views

Determine if values are +/-10% of each other in excel

Hello and thank you in advance. I'm trying to put together a formula to determine if a series of values, e.g., 22.1, 23.4, 22.5 (up to 12 different numbers) are within +/-10% of each other. I've tried ...
Justin's user avatar
  • 1
0 votes
0 answers
35 views

Bash puzzle of the week

We're having a very strange puzzle related to character encodings and bash replacement, where we are passing a bash variable into a rake script that gets piped into a different bash variable, and I'm ...
user3015971's user avatar
0 votes
0 answers
78 views

Reverse Proxy Public Private Url with Parameter

I am trying to setup a reverse proxy with redhat machines running Apache 2.2.15, where the public and private URL contains parameters (static, same for all requests coming through the public url), so ...
Syed Tabish Ali's user avatar
0 votes
1 answer
183 views

Why is Text Parameter not accepting new value only when default value is blank or NULL?

I have a group of users who need to amend address details pulled in a report before it is printed out. We do not want these amendments to be saved or recorded on CRM. I have worked out that using ...
Caroline Allen's user avatar
0 votes
1 answer
243 views

Remove characters from string when passing as parameter

I've tried Googling this and tested every permutation I could come up with, but I'm just not getting it. :( I have a function which accepts an identified input string: [user@Dreadnaught /]$ ...
Scott's user avatar
  • 11
3 votes
3 answers
4k views

What's a correct way for a batch file to run itself with params?

I have a batch file. In which, I need to start another copy of itself in a new window with a parameter. I tried the command start "" "%~0" "Param" but it said '"Param"' is not recognized as an ...
Mark Deven's user avatar
  • 1,508
-1 votes
2 answers
172 views

Can I upgrade my computer's RAM?

My computer bought in 2013 and 4Gb memory, now I want to upgrade RAM for my computer to use smoother, My Computer is asus k56CM core i5 laptop. I want to use it more smoothly, and I use downloadram....
Mappbe Thomas's user avatar
1 vote
0 answers
140 views

How to get the list of the kernel parameters which are supported by the actual kernel?

How can I get the list of all the possible kernel parameters which are supported by the actual kernel?
Konstantin's user avatar
1 vote
1 answer
6k views

libx265 & ffmpeg: the better compression, the larger files?

Trying to squeeze the last bit, I made the finding, that my files get larger then smaller. Unfortunately I must have misinterpreted some parameters. Maybe you can help me. The reference is -preset ...
Thomas R.'s user avatar
  • 121
1 vote
1 answer
900 views

Invoke/execute command with an unknown number of parameters, in PowerShell

Want to execute Invoke-Expression with parameters which can vary depending on the input Having a problem with $MyArgs logic. It should contain only entered parameters Input (example): ./foo.ps1 -...
igor's user avatar
  • 423
1 vote
2 answers
29k views

Change Directory in Windows Batch Script

Based on some other answers I found, I can loop through available drive labels. However, I can't seem to change to that drive: for /f "skip=1 delims=" %%x in ('wmic logicaldisk get caption') do ( %%x ...
user avatar
4 votes
4 answers
33k views

Use a Cell Value for a Paramater Value using in Power Query

I am using a query like below in power query Excel 2016: let Source = Odbc.Query("dsn=AS400", "select * from libm61.emleqpm1 where STN1 = '03' ") in Source I want to replace '03' with a ...
PeterH's user avatar
  • 7,397
2 votes
1 answer
784 views

Run program automatically as a specific user

So I know, that I could just create a shortcut with RunAs but I was wondering, whether it would be possible to pass the password already as a parameter to the script, so I do not have to type it in ...
arvenyon's user avatar
  • 315
1 vote
1 answer
2k views

How can I use "getopts" without a parameter? (here for "-v")

How can I use the getopts without a parameter? while getopts ":a:f:l:r:h:v:" arg; do printf $arg case $arg in a) add_param=${OPTARG} ;; f) file_param=${OPTARG} ...
m1well's user avatar
  • 135
0 votes
1 answer
1k views

Is it possible to create a parameterized shape in Visio

I am working on a harness layout diagram in Visio Pro 2016 and see that there are multiple shapes for various number of line busses eg. 2-line, 3-line, 4-line, and 8-line bus, and a corresponding N-...
WickedMongoose's user avatar
1 vote
0 answers
559 views

How can I use the value of an Excel cell in an Office Data Connection SQL query with an IN operator?

I've got an Office Data Connection running a SQL query against an external data source and using some dynamic parameters provided in cell in a worksheet. As long as I'm doing something like SELECT * ...
cori's user avatar
  • 227
-1 votes
2 answers
5k views

What are the start shutdown.exe parameters?

I have created shortcuts that shut down my PC based on online tutorials. They always explain the how but not the why of the parameters included (e.g. This tutorial). I wish to create a batch program (...
Christian Sirolli's user avatar
0 votes
1 answer
72 views

directory name and cd of all subdirectories in directory using shell

Purpose For each subdirectory in directory that contains a setup.py, run pip uninstall -y <directory name> and pip install . Windows solution > for /D %f in (.\*) do (cd "%cd%\%f" &&...
A T's user avatar
  • 781
0 votes
1 answer
1k views

Section suppression formulas for multi-select parameters in Crystal Reports 11.5

I'm trying to figure out how to create a section suppression formula that evaluates all the selections in a multi-select parameter. For instance, if the parameter is "Program" and you can select from ...
ct253704's user avatar
0 votes
1 answer
54 views

Program arguments (parameters) [closed]

I noticed that some programs can have parameters to run them specific way. I'm wondering how they work and where can I find documentation for them. For example the Atom editor runs from Update.exe ...
rflw's user avatar
  • 199