Search found 25 matches

by Jedininja
14 Jan 2022 04:28
Forum: DOS Batch Forum
Topic: Wokring out battle messages and lol
Replies: 3
Views: 3736

Wokring out battle messages and lol

So i have been trying to work out how to implement battle messages in a text based game and i came up with this! @ECHO OFF SETLOCAL ENABLEEXTENSIONS ::SETLOCAL ENABLEDELAYEDEXPANSION :Load set hp=100 set k=0 set x=0 set y=0 set g=Gestapo set ukg= You killed a %g%! echo =================Gestapo======...
by Jedininja
13 Jan 2022 22:07
Forum: DOS Batch Forum
Topic: Hardawre Profile script has messy output
Replies: 1
Views: 1959

Hardawre Profile script has messy output

Hey, this script is intended to make a profile of a workstation. It works well but the out put is messy and very hard to read. i am wondering if anyone knows how to organize the output to a file in a cleaner manor. Set mainmenu=h :Hardawre Profile IF EXIST %crc% ( ECHO Running Hardware Profiling Scr...
by Jedininja
13 Jan 2022 21:36
Forum: DOS Batch Forum
Topic: Help to disable CtrlC from batch
Replies: 2
Views: 5661

Re: Help to disable CtrlC from batch

wasabipham87 wrote:
06 Jun 2021 08:24
I created this batch for WinPE environment. The last one i used with SET /p work fined. But when i change the menthod input password to choice (auto accept without 'ENTER' to finish input), the problem is user can cancel batch with ctrl+C. Anyone can help me to DENY CtrlC from this.

Code: Select all

break
by Jedininja
13 Jan 2022 21:34
Forum: DOS Batch Forum
Topic: Move multiple subdirectories all with same name
Replies: 5
Views: 3087

Re: Move multiple subdirectories all with same name

aGerman wrote:
13 Jan 2022 13:28
Beside of the fact that xcopy is rather deprecated, how does it solve the problem of having always the same folder name "Archive!?

Steffen
md drive/path/foldername & xcopy /e /i /q /-y path/targetfile.xxx drive/path/foldername
by Jedininja
13 Jan 2022 21:26
Forum: DOS Batch Forum
Topic: How to search for .ini .bat files in the Windows folder
Replies: 5
Views: 3119

Re: How to search for .ini .bat files in the Windows folder

Hi community, I need to write a batch file which shows me all .ini .bat and .txt files in the c:\windows folder side by side. After every file found I need a PAUSE before the next file is searched. I am kinda lost and I dont have any idea how to do that. Do I need to use the DIR or SET cmd? I get a...
by Jedininja
12 Jan 2022 00:29
Forum: DOS Batch Forum
Topic: File/Folder Purging - Best practice?
Replies: 1
Views: 6894

Re: File/Folder Purging - Best practice?

this is a method if you have reoccurring files that need to be deleted. if exist %systemdrive%/file.xxx del /f /q %systemdrive%/file.xxx if exist %systemdrive%/file.xxx del /f /q %systemdrive%/file.xxx if exist %systemdrive%/file.xxx del /f /q %systemdrive%/file.xxx if exist %systemdrive%/file.xxx d...
by Jedininja
11 Jan 2022 23:21
Forum: DOS Batch Forum
Topic: how do i make an output of ECHO SET V5=2>> %BAT%
Replies: 16
Views: 8491

Re: how do i make an output of ECHO SET V5=2>> %BAT%

will append output into a file.

Code: Select all

set a=b
echo %a% >> %systemdrive%/file.txt
will output into a file but overwrite the file if used multipal times.

Code: Select all

set a=b
echo %a% > %systemdrive%/file.txt
will overwrite file
>
will append in a file
>>
by Jedininja
11 Jan 2022 23:17
Forum: DOS Batch Forum
Topic: Move multiple subdirectories all with same name
Replies: 5
Views: 3087

Re: Move multiple subdirectories all with same name

Code: Select all

xcopy /e /i /q /-y path/targetfile.xxx %destination/path%
by Jedininja
11 Jan 2022 22:59
Forum: DOS Batch Forum
Topic: My first post, a Batch Menu Template!
Replies: 0
Views: 35390

My first post, a Batch Menu Template!

Hey, iv been looking for a place to share some batch code and hopefully find new methods of doing things. I'm very interested in batch games so if you have them i will play them! i will post my batch game in this post if another does not already exist. I could use some help resolving some lingering ...