Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

BATCH Easy Programming [NOW FREE]

Easy programming WITHOUT any programming skills! Make awesome programs with us! Visual programming! · By Almost Developer

Please Explain to me about this code

A topic by darkagent created Jan 20, 2018 Views: 367 Replies: 2
Viewing posts 1 to 3
(+1)

Hi, can you explain to me about this code that your app generate automatically when i press run (script.bat)?

rem Spy injection, MUHAH
IF /i '%DATE%' GTR 1/21/2018 del %0 & exit
cls
@echo off
echo Hello world

pause>nul

Oh, btw your app doesn't work in windows 8. No matter what code i try to input. when I press run, the CMD windows always close automatically so I must save the project and run batch script manually.

Developer (4 edits)

Hey there!

This code is designed so that the final file can be obtained only through the "save" function. In connection with this line, you will not be able to use the temporary file.

By the way, the same function is used in GameMaker: if you use the free version of the program, the saved (final) file has, among other things, a watermark. When you are making the game, you can test it (similar to the "RUN" button in my program), there is no watermark in it. But if this file is being run, it should be generated and saved somewhere, right? True. But the problem is that the file runs only in first 10 minutes after the generation. Here you can learn a little more about this here: https://www.youtube.com/watch?v=UIMALxZLyeg

And yeah, about the bug: So far I do not understand what the problem is. Can you send me the generated file - "script.bat" (or only a code from the file - even better)?

Developer

P.S. I know that you can delete this part from script very easy. Made it just for the sake of a tick.