Search found 122 matches

by nnnmmm
05 Apr 2024 23:43
Forum: DOS Batch Forum
Topic: how do i get the filesize from a filename? and compare with IF statement
Replies: 2
Views: 252

Re: how do i get the filesize from a filename? and compare with IF statement

>Surprised your searching did not find any... i can get these if /? for /? but i get no answers from the websearch of "batch command / > ^ /*... etc" i used to get a headache looking for operator's meanings, it became a habit not to look for them much, then it kind of extended to other searchable a...
by nnnmmm
04 Apr 2024 07:50
Forum: DOS Batch Forum
Topic: how do i get the filesize from a filename? and compare with IF statement
Replies: 2
Views: 252

how do i get the filesize from a filename? and compare with IF statement

SET Y22=%~dp0Data\minigun_fire.wav SET Y32=%~dp0Data\minigun_fire.wav how do i get the filesizes of %Y22% and %Y32%? IF EXIST "%Y22%" IF filesize of %Y22%==100 ECHO Sound MOD 1 installed IF EXIST "%Y32%" IF filesize of %Y32%==200 ECHO Sound MOD 2 installed IF NOT filesize of %Y22%==100 IF NOT files...
by nnnmmm
04 Apr 2024 07:33
Forum: DOS Batch Forum
Topic: what is the difference between 1> and 2>
Replies: 4
Views: 521

Re: what is the difference between 1> and 2>

>It doesn't matter if you put it at the front or the back

thanks, i will go back to this way
2>nul RMDIR /S /Q "%A1%\MCC\Saved\Crashes"
2>nul RMDIR /S /Q "%A1%\MCC\Saved\webcache"
2>nul RMDIR /S /Q "%A1%\MCC\Saved\Config\CrashReportClient"
by nnnmmm
31 Mar 2024 17:33
Forum: DOS Batch Forum
Topic: what is the difference between 1> and 2>
Replies: 4
Views: 521

Re: what is the difference between 1> and 2>

this was the 1st time i tried, and redirection webpage was this way. SET A1=%LocalAppData%Low del /q "%A1%\MCC\Saved\Logs\cef3.log" 2>nul RMDIR /S /Q "%A1%\MCC\Temporary" 2>nul RMDIR /S /Q "%A1%\MCC\Saved\Crashes" 2>nul RMDIR /S /Q "%A1%\MCC\Saved\webcache" 2>nul RMDIR /S /Q "%A1%\MCC\Saved\Config\...
by nnnmmm
31 Mar 2024 10:46
Forum: DOS Batch Forum
Topic: what is the difference between 1> and 2>
Replies: 4
Views: 521

what is the difference between 1> and 2>

SET A1=%LocalAppData%Low 2>nul del /q "%A1%\MCC\Saved\Logs\cef3.log" 2>nul RMDIR /S /Q "%A1%\MCC\Temporary" 2>nul RMDIR /S /Q "%A1%\MCC\Saved\Crashes" 2>nul RMDIR /S /Q "%A1%\MCC\Saved\webcache" 2>nul RMDIR /S /Q "%A1%\MCC\Saved\Config\CrashReportClient" SET A1=%LocalAppData%Low 1>nul del /q "%A1%\...
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: 10698

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: 10698

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: 23331

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: 23331

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: 23331

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: 23331

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: 5842

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: 10698

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: 10698

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: 10698

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...