Jump to content

Batch Help

- - - - -

  • Please log in to reply
No replies to this topic

#1
hetra

hetra

    Programming Professional

  • Members
  • PipPipPipPipPip
  • 298 posts
  • Location:Australia
  • Programming Language:C, C++, PHP, Python, Delphi/Object Pascal, Assembly
  • Learning:Python, Assembly
Hey all,

I didn't know where else to put this so here it is:

I program in Batch at school (because they don't have any other language). I was making a file that reads a passcode (being 15617) then it lets you write a secret message to a text file. Simple code, then the program cuts out after you put the code in!

@echo off

echo RootKit #001 execution will begin after user command...

pause

echo Enter Passcode:

set /p passCode=

pause

if passCode = 15671

pause

color 2

echo Access Granted...

pause

echo Enter your data:

set /p data=

pause

echo Writing data to secure file...

%data%>>LockedVault.txt

echo Complete

pause

@echo on 

cls

exit

else 

color 4

echo Access Denied...

pause

@echo on

cls

exit


Any help would be good (only if you know MS-DOS, if not that's okay).




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users