New answers tagged

0 votes

Is there a way to copy the contents of an ISO file to a specific windows partition and boot from it?

I've managed to do it using GRUB4DOS. This is what i did: Downloaded GRUB4DOS and unzipped it in C:\ Created a boot entry with bcdedit which has path \grldr.mbr and device partition=C: (named it ...
0 votes

Sorting files in an numerical order

Here are eight whole lines of Python code to get this done without any OS-specific scripting. I've made it to allow for a file prefix (in your case there is none so line 3 is ''). It might be fun to ...
0 votes

how to view hidden files on an NTFS drive that were copied from a Mac?

Data recovery software It detects the folders but it's taking forever to "recover" given that these files haven't been deleted in the first place. As far as data recovery software is ...
0 votes

How to directly open the WSL bash (command line) to the current working directory from File (Windows) explorer

Install the "Terminal" app from Microsoft. After that you can right-click on a folder in Explorer and choose "Open in terminal" from the context menu. It could be that the context ...
1 vote

Command for "cmd" to update all the software in windows?

The following is the best method for installing updates for all apps in Windows: Run CMD as administrator. Type: winget upgrade --all winget upgrade --ignore-unknown
0 votes

How to generate MD5 hash value for multiple files in a folder using cmd

With a Batch file using the command Certutil you can generate and get MD5 HASHES like that : @echo off Title Get MD5 HASHES Set "MD5Hashes=%~dp0md5hashes.txt" If Exist "%MD5Hashes%&...
  • 1,326
0 votes

How can I automate multiple Aria2 commands to run consecutively?

It's not clear what resource is not found. It could be that brackets are interpreted by your command processor before being passed to aria2. You can store the list of URIs a file. Then you would use --...
22 votes
Accepted

How do I pass the password to a net use command which contains % at the end?

There are a few solutions to your problem Use a variable for the password set "password=b91A*9AIvPr%" net use \\192.168.40.40 /user:192.168.40.40\Administrator %password% Use a ...
  • 336
0 votes

does a CMD window stop running while Windows 10 lock screen is enabled?

As an interesting note, NI TestStand timed pop-up windows do not time out during screenlock in Win10. Very annoying for automation.
0 votes

Running remote ssh command with spaces?

I have the setup that both host and client run git bash on windows and the openssh default shell on the server was set to git bash. I needed to run ssh username@ipaddress 'rm -rf TESTING' But, when ...
  • 1
0 votes
Accepted

Deleting empty folders and subfolders in windows cmd prompt

See this answer The ^ symbol (also called caret or circumflex) is an escape character in Batch script. When it is used, the next character is interpreted as an ordinary character. also see this ...
  • 1,500
0 votes
Accepted

How to get the file path I opened with a cmd file?

Use Parameter Extensions %~f1 Expand %1 to a Fully qualified path name - C:\utils\MyFile.txt %~d1 Expand %1 to a Drive letter only - C: %~p1 Expand %1 to a Path only e.g. \utils\ this includes a ...
  • 6,781
0 votes

CMD nslookup script returns "timed-out" error

I forgot to mention, I just need one line of the output and not the whole MX data set. It also does not matter which data set is stored. Furthermore, if there is a typo in one of the domains, the ...
  • 13
2 votes
Accepted

CMD nslookup script returns "timed-out" error

Is there something wrong with the script? There are a couple of errors: Your parentheses don't match up (there is a missing ). echo !result! >> %outputFile% is in the wrong place (it should be ...
  • 149k
1 vote

How to get the ACTUAL version number for Windows 10 from command line? (NOT build number!)

I've done lots of searching and came along this post, for what you're looking for this is the simplest answer Get-ComputerInfo | select windowsversion
  • 11
0 votes

Batch command to open url and fulfill username and password

Hope this will help. rem Use %SendKeys% to send keys to the keyboard buffer set SendKeys=CScript //nologo //E:JScript "%~F0" rem wait for the browser to finish loading timeout /t 10 %...
  • 1
1 vote

How can I move/copy multiple file at once with different extension in cmd window?

You can use Robocopy. Syntax: robocopy source destination [file [file]...] So for example to copy your files from folder D:\MyData to folder E:\Test you can use: robocopy D:\MyData E:\Test File1.txt ...
  • 1,552
1 vote

How can I move/copy multiple file at once with different extension in cmd window?

copy "source" "destination" When writing "source" use wildcards for example copy c:\*.* d:\ Will copy all files from drive c to d regardles of name and extension. Copy ...
1 vote
Accepted

Using px proxy Windows 10, powershell, cmd, kubectl

Note: I do not have K8 or even docker. The info I am providing is something that was brought up in a recent meeting I was in. As per my comment. Are you saying, you've set your environment variables, ...
  • 4,448

Top 50 recent answers are included