Category : Utilities for DOS and Windows Machines
Archive   : LET12.ZIP
Filename : DEMO-9.BAT

 
Output of file : DEMO-9.BAT contained in archive : LET12.ZIP
echo Off
If `%Name%' == `' Demo
cls
echo ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»
echo ÚÄ×ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ×Ä¿
echo ³ º File Specification Parsing: FILESPEC º ³
echo ÀÄ×ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ×ÄÙ
echo ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ
echo ÿ
echo Now we turn to a neat little feature that LET has to offer: file-name
echo parsing. Given a file-name, we can `explode' it into its constituent
echo parts: the drive, the (absolute) path, the file's name, and its
echo extension. For example, I am going to ask for a file specification
echo below. You can give me any portion(s) you want: you can omit the
echo path, for example, or give me a relative or absolute path. You can
echo omit the drive, or specify it. Whatever.
echo ÿ
LET dummy=(do "filespec")
echo I get the following parts:
echo Drive: %fileDrive%
echo Path: %filePath% (this is from the root)
echo Name: %fileName%
echo Ext: %fileExt%
echo Put all together, you would have "%file2%".
echo ÿ
set file=
set fileDrive=
set filePath=
set fileName=
set fileExt=
set file2=
pause
DEMO-10


  3 Responses to “Category : Utilities for DOS and Windows Machines
Archive   : LET12.ZIP
Filename : DEMO-9.BAT

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/