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
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 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 ...
- 11
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
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
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
- 11
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
cmd.exe × 2850windows × 1239
command-line × 694
windows-10 × 445
batch-file × 410
batch × 380
powershell × 284
windows-7 × 273
environment-variables × 71
script × 60
networking × 59
bash × 55
windows-registry × 46
python × 43
path × 42
windows-8 × 40
windows-explorer × 40
ffmpeg × 39
shell × 39
administrator × 39
windows-8.1 × 37
windows-xp × 32
console × 32
robocopy × 31
vbscript × 29