Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @ECHO OFF
- TITLE ~~~***NAJEEB SHAH KHAN TEXT READER***~~~
- ::============================Home===================================
- COLOR 1B
- ECHO ~~~*** NAJEEB SHAH KHAN TEXT READER***~~~
- ECHO %TIME% %DATE%
- ECHO =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
- ECHO FILES READING EXTENSION:-TXT,PNG,JPG,MF,DOC,LOG,INI,LST,SMF,ORG,
- ECHO RTF,SAM,ANS,LTX,DSC,ME,SIG,LIS,QBL,HS,WTT,LUF,ATY,RAD,KNT,TM,FDR,
- ECHO =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
- ECHO.
- set /P File2Read=ENTER FILE NAME WITH EXTENSION:
- If Not Exist "%File2Read%" (Goto :Error)
- rem This will read a file into an array of variables and populate it
- setlocal EnableExtensions EnableDelayedExpansion
- for /f "delims=" %%a in ('Type "%File2Read%"') do (
- set /a count+=1
- set "Line[!count!]=%%a"
- )
- rem Display array elements
- For /L %%i in (1,1,%Count%) do (
- echo !Line[%%i]!
- )
- pause>nul
- CLS
- start "" "%~f0"
- exit
- ::***************************************************
- :Error
- cls & Color 4C
- echo(
- echo The file "%File2Read%" dos not exist !
- Pause>nul
- exit /b
- ::***************************************************
Add Comment
Please, Sign In to add comment