🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.msdos.programmer
Article #952

A batch programming contest for you

#952
From: Timo Salmi
Date: Tue, 18 Aug 1992 05:20
27 lines
1600 bytes
As you might know I have a large collection of batch files and
tricks garbo.uwasa.fi:/pc/ts/tsbat36.zip. I am always looking for
useful new information for it.

I have a puzzle for you gentle fellow programmers who are interested
in batch programming. The task is the following.  With the standard
batch commands write a batch that returns the extension of the
(file) name given to the batch as the parameter (%1). No external
commands or programs are allowed to perform the task.

Please note that this is not because I would need the solution. I
already have devised one working solution myself (it has 14 lines
the actuial testing part taking 7 up). I'll be including it to the
next version of TSBAT. But I thought we could for a change try a
programming contest just for everyone's enjoyment. And who knows
what useful batch programming ideas might pop up in the process.

Please post your potential suggestions and solutions in here for
everyone to see. 

   All the best, Timo

..................................................................
Prof. Timo Salmi
Moderating at garbo.uwasa.fi anonymous FTP archives 128.214.87.1
Faculty of Accounting & Industrial Management; University of Vaasa
Internet: ts@uwasa.fi Bitnet: salmi@finfun   ; SF-65101, Finland
Technical Details
Message-ID: <1992Aug18.052017.3758@uwasa.fi>
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!news.funet.fi!uwasa.fi!ts

Show Full Headers
Complete Article Headers
Newsgroups: comp.os.msdos.programmer
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!news.funet.fi!uwasa.fi!ts
From: ts@uwasa.fi (Timo Salmi)
Subject: A batch programming contest for you
Message-ID: <1992Aug18.052017.3758@uwasa.fi>
Organization: University of Vaasa, Finland
Date: Tue, 18 Aug 1992 05:20:17 GMT
Lines: 27