PEM - Personal Extractable Message

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
SawyerTHEBEST
Posts: 2
Joined: 24 Jan 2013 23:10

PEM - Personal Extractable Message

#1 Post by SawyerTHEBEST » 24 Jan 2013 23:19

MODEDIT: The code is below - the advert loaded URL is not necessary.

:mrgreen: [url]PEM v0.3 - Personal Extractable Message[/url] :mrgreen:
[url]Download: HERE[/url]
---About---
PEM started as a personal project of mine, to make it so I can have a program that I can run off my flashdrive to write a silly message on my school / public computers, that doesn't harm it at all.

also its all about 5kb on flashdrive so doesn't take up much space on your flashdrive.

(Allows your to plug in flashdrive into computer, run a shortcut, which extracts message then runs it, haves rolling message displayed even when flashdrive is unplugged.
------------------------------------------------------------------------------------------------------------
SO HERE IT IS!



What it do:

PEM displays a set message, in command prompt, with customize able color background, and text color ( which is explained in code)

(How it works)
The 3 Batch files:

QWOPER: Runs the other 2 batch files.

batrainbow: is the main files maine, that displays the message.

diarrhea: extracts batrainbow to a destination (set in code).


Everything you need to know about how to use PEM is in the READme file.

also also ways to improve code, and personal edits, etc is appreciated ^_^

- Peace out girl scout


--What to add---
Custom Icon
extractable from just pluggin in a flashdrive ( not having to run shortcut)
- idk

foxidrive
Expert
Posts: 6031
Joined: 10 Feb 2012 02:20

Re: PEM - Personal Extractable Message

#2 Post by foxidrive » 24 Jan 2013 23:46

Here is the code from the download - untested

Code: Select all

@echo off
for /F "tokens=1,2 delims=#" %%a in ('"prompt #$H#$E# & for %%b in (1) do rem"') do (
   set "DEL=%%a"
)
SETLOCAL EnableDelayedExpansion




:start
call :C C0 "POOP`"
call :C E0 "POOP`"
call :C A0 "POOP`"   
call :C B0 "POOP`"
goto start

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        Template for text format
ex: call :C C0 "POOP"        
      First       Second
   (Background)    (Letters)
        A = Green   0 = Black
      B = Blue   1 = Purple
      C = Red      2 = Green
      D = Pink   3 = Blue
      F = White   4 = Red
               5 = Pink
         
vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
      
echo.
pause && goto :eof

:C
echo off
<nul set /p ".=%DEL%" > "%Temp%\%~2"
cd %Temp%
findstr /v /a:%1 /R "^$" "%~2" nul
del "%Temp%\%~2" > nul 2>&1
goto :eof

SawyerTHEBEST
Posts: 2
Joined: 24 Jan 2013 23:10

Re: PEM - Personal Extractable Message

#3 Post by SawyerTHEBEST » 25 Jan 2013 15:02

Also i'm trying to make the 3 files into 1 and would like help with it.

Post Reply