Search found 1970 matches
- 29 Jun 2021 06:02
- Forum: DOS Batch Forum
- Topic: Why does this run net1.exe?
- Replies: 15
- Views: 12817
Re: Why does this run net1.exe?
I rechecked the results for the "netbios.dll"/"n<s" on my system with a path set to the test drectory only: Confirmed not executing "net.exe" in that scenario. (Maybe it's somehow is connected with the fact that i upgraded to win10 prof from win8.1 - but that's a shot into the blue.) Also, since "n<...
- 28 Jun 2021 05:42
- Forum: DOS Batch Forum
- Topic: Why does this run net1.exe?
- Replies: 15
- Views: 12817
Re: Why does this run net1.exe?
"no<<<<<" Launches notepad.exe, but in the top left corner of notepad window the icon does not look like notepad's. Also in the taskbar, the notepad window does not have the notepad icon. I'm betting the icon resource lookup doesn't recognize wildcards. According to "Process Monitor" (link in my fi...
- 28 Jun 2021 05:30
- Forum: DOS Batch Forum
- Topic: Why does this run net1.exe?
- Replies: 15
- Views: 12817
Re: Why does this run net1.exe?
On your system, what is the FIRST file returned from: DIR "%Windir%\System32\n<s.*" If you follow the 5 backtracking steps I showed, does it result in net.EXE ? On my system, the first file returned (of 12 files, including netbios.dll ) in DIR " C:\Windows\System32\n<s.* " is NarratorControlTemplat...
- 27 Jun 2021 17:41
- Forum: DOS Batch Forum
- Topic: Why does this run net1.exe?
- Replies: 15
- Views: 12817
Re: Why does this run net1.exe?
It's likely there's a matching file ending in "4" on your system. Yes, the file "Netwuw04.dll" ends on the character '4'. Applying this to the OP's example (on my system): "n<z" While i agree with most you said, there is a nitpick. I have a file named "netbios.dll" in "C:\Windows\System32". Therefo...
- 17 Jun 2021 09:28
- Forum: DOS Batch Forum
- Topic: Batch script to rename text files to match image files names.
- Replies: 5
- Views: 4201
Re: Batch script to rename text files to match image files names.
I am so sorry for making the above error and want to apologize.
I hope the /Y command wasn't preset in the COPYCMD variable,
so your test environment wasn't messed up.
Thanks to Squashman, for finding that error, i literally didn't see that.
I fixed the above code.
I hope the /Y command wasn't preset in the COPYCMD variable,
so your test environment wasn't messed up.
Thanks to Squashman, for finding that error, i literally didn't see that.
I fixed the above code.
- 15 Jun 2021 02:05
- Forum: DOS Batch Forum
- Topic: Batch script to rename text files to match image files names.
- Replies: 5
- Views: 4201
Re: Batch script to rename text files to match image files names.
This might help you (untested):
penpen
Edit: Corrected critical error, thanks to Squashman for seeing that.
Code: Select all
@echo off
setlocal enableExtensions disableDelayedExpansion
pushd "Z:\Images\Converted\"
for %%a in (*.jpg *.psd) do copy "Placehold.txt" "%%~na.txt"
popd
goto :eof
Edit: Corrected critical error, thanks to Squashman for seeing that.
- 10 Jun 2021 17:44
- Forum: DOS Batch Forum
- Topic: Get cursor position
- Replies: 5
- Views: 4629
Re: Get cursor position
Thanks to jeb, the cursor position could be read using the vt100 functionality with pure batch: https://www.dostips.com/forum/viewtopic.php?f=3&t=9454&p=61318#p61322 Sidenote: You could do the same using C# to compile an executable file, which is done in the first post... but then you better might w...
- 08 Jun 2021 08:23
- Forum: DOS Batch Forum
- Topic: [Solved] How to delete a file with zero byte created accidentally with name "Call" on Windows ?
- Replies: 2
- Views: 3532
Re: [Solved] How to delete a file with zero byte created accidentally with name "Call" on Windows ?
I'm just curious - how did you create that file in windows?
penpen
penpen
- 01 Jun 2021 18:36
- Forum: DOS Batch Forum
- Topic: Check output of called Script
- Replies: 3
- Views: 3116
Re: Check output of called Script
I'm not sure i fully understand you: Except for exceptions that are able to completely abort batch file execution and the start-command used with specific arguments, that might open a new window, which might not be closed, nearly whatever programming logic you use in "Master_Batch.bat" shouldnt affe...
- 30 May 2021 19:12
- Forum: DOS Batch Forum
- Topic: Unexpected DOS shell expansion of %~n1 and %~x1
- Replies: 4
- Views: 4607
Re: Unexpected DOS shell expansion of %~n1 and %~x1
The expansion of wildcards within batch- and for-variable-expansion and is normal and i'm also pretty sure it was discussed here somewhere, but at the moment i can't find it. However, if i remember right, then the reason why your specific solution works is because the doublecolon character is an Alt...
- 29 May 2021 08:48
- Forum: DOS Batch Forum
- Topic: Need help
- Replies: 24
- Views: 12439
Re: Need help
Based on the first few files of the game i opened in notepad, i guess every file that contains an "echo" (no matter the case) might be a good candidate; assumed that the game main directory is located in "Z:", the following batch might help you to list them all: @echo off setlocal enableExtensions d...
- 29 May 2021 06:09
- Forum: DOS Batch Forum
- Topic: Unexpected DOS shell expansion of %~n1 and %~x1
- Replies: 4
- Views: 4607
Re: Unexpected DOS shell expansion of %~n1 and %~x1
Wildcard expansion rules can be found here:
viewtopic.php?f=3&t=6207#p39420.
The "*.*" case doesn't go haywire at all - the first match in your cases is the actual directory (".").
penpen
viewtopic.php?f=3&t=6207#p39420.
The "*.*" case doesn't go haywire at all - the first match in your cases is the actual directory (".").
penpen
- 27 May 2021 19:49
- Forum: DOS Batch Forum
- Topic: Check output of called Script
- Replies: 3
- Views: 3116
Re: Check output of called Script
At the moment you don't call another batch file. You just tell the command line processor to execute a different batch file (with new parameters) instead of the actual one. It's like changing the disc in your DVD-Player - there can be only one. Previously processed batch files and progress in them a...
- 04 May 2021 06:11
- Forum: DOS Batch Forum
- Topic: How to make a game saving system?
- Replies: 3
- Views: 3092
Re: How to make a game saving system?
There are multiple ways to do that, just use the search function to look them all up. You might for example use the following save/load functions (untested): @echo off setlocal enableExtensions disableDelayedExpansion call :init call :debug call :save set "value1=D" set "value2=E" set "value3=F" cal...
- 03 Apr 2021 02:29
- Forum: DOS Batch Forum
- Topic: tv
- Replies: 9
- Views: 24295
Re: tv
You might use ECMA-Script (JScript) to deal with JSON; see: - https://www.dostips.com/forum/viewtopic.php?f=3&t=9049#p59302 - https://www.dostips.com/forum/viewtopic.php?f=3&t=9049#p59297 - https://www.dostips.com/forum/viewtopic.php?f=3&t=9049#p59303 - https://www.dostips.com/forum/viewtopic.php?f=...