Advertisement
swarley

CMD.bat

Dec 14th, 2011
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 0.49 KB | None | 0 0
  1. ECHO OFF
  2. REM This is a work around for workplaces that do not allow execution of cmd.exe bu do allow
  3. REM batch scripting, for anything like managing the internet to configuring printers, etc.
  4. REM the following code, compatible with WIN95+ ;p
  5. REM I don't think this is worth anything like license protecting it, but i suppose it is
  6. REM covered under the GPL 3 license.
  7.  
  8. :BEGIN
  9. IF "%%a%%" == "exit" GOTO END
  10. GOTO EVAL
  11.  
  12. :EVAL
  13. echo/|set /P ="%%cd%%> "
  14. set a = %=%
  15. %a%
  16. GOTO BEGIN
  17.  
  18. :END
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement