Search found 1027 matches

by ShadowThief
24 Jun 2021 15:37
Forum: DOS Batch Forum
Topic: Hidding wifi password
Replies: 2
Views: 38

Re: Hidding wifi password

Hide the wifi password where?
by ShadowThief
13 Jun 2021 18:19
Forum: DOS Batch Forum
Topic: Break out of script and goto menu
Replies: 6
Views: 265

Re: Break out of script and goto menu

Somebody more qualified than I am will have to answer that, but my gut instinct is that since the CTRL+Break is processed by cmd.exe itself and not the script, the script has no idea you've pressed CTRL+Break or responded to it, so there is no way it can even look for that.
by ShadowThief
12 Jun 2021 22:59
Forum: DOS Batch Forum
Topic: serch all flac in folder and subfolder? (wrong script)
Replies: 2
Views: 110

Re: serch all flac in folder and subfolder? (wrong script)

I don't know what your folder structure looks like so it's impossible to say for certain, but it should be as straightforward as changing

Code: Select all

dir /a:-d /b %file_mask%
to

Code: Select all

dir /a:-d /b /s %file_mask%
by ShadowThief
06 Jun 2021 19:46
Forum: DOS Batch Forum
Topic: Return to the 1st batch file
Replies: 4
Views: 213

Re: Return to the 1st batch file

No, because it should be doing that automatically. Post your entire scripts and we'll be able to troubleshoot more effectively.
by ShadowThief
06 Jun 2021 18:47
Forum: DOS Batch Forum
Topic: Return to the 1st batch file
Replies: 4
Views: 213

Re: Return to the 1st batch file

A script run via call will return control to the script that called it once the second script is over.

That said, there's already a command called net use, so that may be causing issues. Never name a script the same thing as a command that already exists.
by ShadowThief
05 Jun 2021 11:16
Forum: DOS Batch Forum
Topic: Break out of script and goto menu
Replies: 6
Views: 265

Re: Break out of script and goto menu

Because of how simple this question appears, I'm worried that when I say "use goto menu ," you're going to respond with "that didn't work." If you can elaborate on what you mean by "break out of a batch file" and "while it's running," (how would a batch file do things when it wasn't running?) I can ...
by ShadowThief
02 Jun 2021 07:42
Forum: DOS Batch Forum
Topic: Commands don't execute from batch file but from CMD
Replies: 2
Views: 229

Re: Commands don't execute from batch file but from CMD

Everything after echo gets printed to the screen, and that's all that command does. You never run the actual commands at any point - you would do that by having the same command but without the echo at the beginning.
by ShadowThief
13 May 2021 07:51
Forum: DOS Batch Forum
Topic: Batch File not running in the AM hours
Replies: 1
Views: 386

Re: Batch File not running in the AM hours

When the value of %TIME% is between 1:00 and 9:59 AM, the hour is prefixed with a space. Since your output path is unquoted, your reports aren't being sent to the correct location. You've got a couple options here: 1. Use quotes "C:\Program Files\apache-jmeter-5.3\bin\jmeter" -n -t C:\AA\Per\JMX\myt...
by ShadowThief
24 Apr 2021 13:33
Forum: DOS Batch Forum
Topic: bat file dont run
Replies: 3
Views: 696

Re: bat file dont run

In a batch script, your for loop variable needs to use two %s instead of one.

Code: Select all

for %%i in (*mkv) do md "%%~ni"
for %%i in (*mkv) do move "%%i" "%%~ni"
by ShadowThief
19 Apr 2021 18:58
Forum: DOS Batch Forum
Topic: Windows (and Office?) product key finder
Replies: 13
Views: 1722

Re: Windows (and Office?) product key finder

My script runs correctly in Windows 10 (and by correctly, I mean it matches the output of the vbs script in the first post). Frankly, that's the only thing I care about because I refuse to support older versions of Windows. Also, to be blunt, literally nobody needs this script. Your product ID is ei...
by ShadowThief
19 Apr 2021 16:06
Forum: DOS Batch Forum
Topic: Windows (and Office?) product key finder
Replies: 13
Views: 1722

Re: Windows (and Office?) product key finder

I only tested 32-bit Windows XP, because why are you running Windows XP in 2021?
by ShadowThief
16 Apr 2021 20:57
Forum: DOS Batch Forum
Topic: Windows (and Office?) product key finder
Replies: 13
Views: 1722

Re: Windows (and Office?) product key finder

There were a couple of tricky things here: vbscript substrings are 1-indexed while batch substrings are 0-indexed, and WshShell.RegRead interprets a hex byte array as an array of integers, while reg query takes the value as a string. Other than that, not too bad. @echo off setlocal enabledelayedexpa...
by ShadowThief
12 Apr 2021 01:52
Forum: DOS Batch Forum
Topic: Clobbered cmd.exe!
Replies: 7
Views: 1354

Re: Clobbered cmd.exe!

If you haven't installed anything weird recently, it may be worth checking your hard drive's health. Download a disk health program like CrystalDiskInfo (https://crystalmark.info/en/software/crystaldiskinfo/) and make sure everything looks normal (or in this case, that all the dots are blue).
by ShadowThief
09 Apr 2021 13:59
Forum: DOS Batch Forum
Topic: Is there a way to obfuscate parts of a batch file?
Replies: 3
Views: 1066

Re: Is there a way to obfuscate parts of a batch file?

Dbenham used ROT13 to obfuscate a significant chunk of his port of Colossal Cave Adventure: viewtopic.php?f=3&t=4876