Search found 117 matches

by nnnmmm
26 Jan 2024 23:13
Forum: DOS Batch Forum
Topic: is there a DOS command for running a program with windows 98 compatibility?
Replies: 11
Views: 7785

Re: is there a DOS command for running a program with windows 98 compatibility?

there was no search result for the string "CompLayer" in regedit
but ZombieShooter2.exe had the results as below
~ WIN98
~ WINXPSP3
~ VISTARTM
~ VISTASP2
~ WIN7RTM
~ WIN8RTM
i just removed ~ for CompLayer=

it worked, thanks
by nnnmmm
25 Jan 2024 06:04
Forum: DOS Batch Forum
Topic: is there a DOS command for running a program with windows 98 compatibility?
Replies: 11
Views: 7785

Re: is there a DOS command for running a program with windows 98 compatibility?

set "CompLayer=WIN98" what would be the CompLayer value for WinXP and Window 8.1 and maybe for vista and windows 7? maybe any of the below things? "CompLayer=WINXP" "CompLayer=WINDOWS XP" "CompLayer=XP" "CompLayer=XPSP3" "CompLayer=WIDOWS8" "CompLayer=WIN8" websites didnt have much about CompLayer ...
by nnnmmm
21 Oct 2023 20:47
Forum: DOS Batch Forum
Topic: i need to check on a branch if it has any files other than desktop.ini
Replies: 8
Views: 21114

Re: i need to check on a branch if it has any files other than desktop.ini

@echo off SET Q1=C:\ZTREE\NIRCMDC.EXE SET Q2=C:\ZTREE\NIRCMDC-64.EXE IF DEFINED PUBLIC (SET QQ=%Q2%) ELSE (SET QQ=%Q1%) set "dir1=%USERPROFILE%\Pictures" set "dir2=%USERPROFILE%\Downloads" if exist "%dir1%" ( for /f "delims=" %%i in ('dir /b /s /a-d "%dir1%"') do ( if /i "%%~nxi" neq "desktop.ini" ...
by nnnmmm
21 Oct 2023 04:15
Forum: DOS Batch Forum
Topic: i need to check on a branch if it has any files other than desktop.ini
Replies: 8
Views: 21114

Re: i need to check on a branch if it has any files other than desktop.ini

@echo off set "YourFolder=%USERPROFILE%\Pictures" if exist "%YourFolder%" ( pushd "%YourFolder%" dir /b /a-d /s | findstr /v /x /i "desktop.ini" | findstr .* >NUL if not errorlevel 1 ( echo ALERT pause ) popd ) this batch always shows ALERT, even though there are no other files other than desktop.i...
by nnnmmm
21 Oct 2023 00:47
Forum: DOS Batch Forum
Topic: i need to check on a branch if it has any files other than desktop.ini
Replies: 8
Views: 21114

Re: i need to check on a branch if it has any files other than desktop.ini

C:\Users\AAA\Pictures\Camera Roll\ C:\Users\AAA\Pictures\Saved Pictures\ C:\Users\AAA\Pictures\other game names\ the batch detects these as files. they can have directories, and programs always rebuild these directories, so no point to delete them, but i wont allow this kind of trash files in where ...
by nnnmmm
20 Oct 2023 10:50
Forum: DOS Batch Forum
Topic: i need to check on a branch if it has any files other than desktop.ini
Replies: 8
Views: 21114

i need to check on a branch if it has any files other than desktop.ini

would someone like to write this batch for me?

if "%USERPROFILE%\Pictures" 's current directory or subdirectories have any files other than desktop.ini then
play C:\Windows\Media\chord.wav (if not easy , then beep pc speaker )
and echo "alert"
by nnnmmm
22 Sep 2023 06:28
Forum: DOS Batch Forum
Topic: why does del /q "" work like del /q *.* and ruin me
Replies: 3
Views: 5281

Re: why does del /q "" work like del /q *.* and ruin me

> seeing this abomination.......I can't imagine how MS could have ended up with this disaster. DEL is probably the worst command possible - so destructive. your statement is gonna make me not forget the damn DEL thing i didnt get a response for this issue maybe for 2 weeks, so i thought it could jus...
by nnnmmm
20 Sep 2023 23:56
Forum: DOS Batch Forum
Topic: is there a DOS command for running a program with windows 98 compatibility?
Replies: 11
Views: 7785

Re: is there a DOS command for running a program with windows 98 compatibility?

@echo off SET "A1=%~dp0" set "AppName1=%A1%CLAIREP.EXE" set "AppName2=%A1%LEONP.EXE" set "CompLayer=WIN98" reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers" /v "%AppName1%" /t REG_SZ /d "%CompLayer%" /f reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windo...
by nnnmmm
20 Sep 2023 20:59
Forum: DOS Batch Forum
Topic: is there a DOS command for running a program with windows 98 compatibility?
Replies: 11
Views: 7785

Re: is there a DOS command for running a program with windows 98 compatibility?

>go to Properties, go to the Compatibility tab, not this manual way, everytime i meet the problem, it is not just only OS dependent but also fresh installation DEPENDENT, i never wanna go to that path. i removed every LNK file from games, some utilities, nircmdc and etc, i keep only everlasting, alm...
by nnnmmm
20 Sep 2023 03:58
Forum: DOS Batch Forum
Topic: is there a DOS command for running a program with windows 98 compatibility?
Replies: 11
Views: 7785

is there a DOS command for running a program with windows 98 compatibility?

is there a DOS command for running a program with windows 98 compatibility? example start "" /win98 "resident evil 2.EXE" start "" /win98 of course, i made this line up, but it was an idea PC version "resident evil 2.EXE" has NO known emulators, so i must use windows 98 compatibility mode to get som...
by nnnmmm
12 Aug 2023 20:28
Forum: DOS Batch Forum
Topic: why does del /q "" work like del /q *.* and ruin me
Replies: 3
Views: 5281

why does del /q "" work like del /q *.* and ruin me

SET MA=%~dp0base\flashlight mod.pk4 del /q "%MA%" renaming and sorting variable names, i only changed MA to X1 in SET, then a disater stoke, being shocked and heartbroken del /q %MA%", was treated as del /q "" why does del /q "" work like del /q *.* and delete everything in its current directory may...
by nnnmmm
31 Dec 2022 23:20
Forum: DOS Batch Forum
Topic: how do i pass a variable that has @ in it?
Replies: 2
Views: 6853

Re: how do i pass a variable that has @ in it?

thanks for the help

a half of my batch files uses %~d0% and the other half %~d0, then time went by decades.
i will try to replace %~d0% with %~d0 if i can, from 100's batches for 1000's implications.
by nnnmmm
30 Dec 2022 09:54
Forum: DOS Batch Forum
Topic: how do i pass a variable that has @ in it?
Replies: 2
Views: 6853

how do i pass a variable that has @ in it?

SET Y1=@OK games SET M1=%~d0%\%Y1%\AVP 2 - v1091\!AVP 2 - V1091.BAT SET M2=%~d0%\%%Y1%%\AVP 2 - v1091\!AVP 2 - V1091.BAT SET M3=%~d0%\\%%Y1%%\AVP 2 - v1091\!AVP 2 - V1091.BAT SET M4=%~d0%\\\%%Y1%%\AVP 2 - v1091\!AVP 2 - V1091.BAT SET M5=%~d0%%Y1%%\AVP 2 - v1091\!AVP 2 - V1091.BAT SET T1=%~d0%\@OK g...
by nnnmmm
23 Oct 2022 07:43
Forum: DOS Batch Forum
Topic: i need a command to remove all sub dirs except for the current dir name
Replies: 2
Views: 1885

Re: i need a command to remove all sub dirs except for the current dir name

for /d %%i in ("%G1%\*") do rd /s /q "%%i" DEL /Q "%G1%" thanks that did it. i guess this means no simple command but a program this is a proof as to how poorly i know of the DOS batch IF EXIST "%G1%" DEL /Q "%G1%" : this unnecessary part did me some strange wonders to buy MKDIR extra time. IF EXIS...
by nnnmmm
23 Oct 2022 05:32
Forum: DOS Batch Forum
Topic: i need a command to remove all sub dirs except for the current dir name
Replies: 2
Views: 1885

i need a command to remove all sub dirs except for the current dir name

RMDIR /S m:\ABC /S Removes all directories and files in the specified directory in addition to the directory itself. addition to the directory itself. is a problem for me. i want some command that does like RMDIR except for the addition to the directory itself part. I need the current dir name to st...