Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Needed: Batch file to un-url-encode

562 views
Skip to first unread message

Andrew Rich

unread,
Dec 27, 1996, 3:00:00 AM12/27/96
to

I'm running a web server on my machine here at work, and I'd like to try
experimenting with CGI scripts using MSDOS batch language. I need to be able
to decode url-encoded environment strings like:

QUERY_STRING=name~Andrew&quest~Food&swallow~I+don7t+know

Of course I know how to use environment variables with percent signs, but I
don't know if there is a way to parse variables into separate parts.

A DOS program or batch file command would be great for this -- but any help
would be appreciated. Note: I'm not interested in doing Perl. TIA!!
--
Lt. D'Amato (Andrew Rich)
--
dam...@beachnet.com | ar...@davd.com
SAVE CARNATION! http://198.147.120.23/carnation.htm
--


Timothy Joseph Harvey

unread,
Dec 28, 1996, 3:00:00 AM12/28/96
to

Sorry Andrew, but the DOS scripting language is pretty brain dead. It's
fine for launching real CGI programs and doing really basic stuff, but I
bailed in favor of Perl since I could easily do parsing and so much more
with it. Perl came with the NT resource kit and is available via Hippo,
the outfit that did a port for Microsoft (do a web search with Alta
Vista, etc. for their web site).

I'd much rather be making quick progress doing interesting things with my
web service (an intranet web-based tool for untrained people to do basic
NT4 system administration) than figure out cute and tricky ways to make a
dog like DOS batch language sing opera.

If you feel you lack the background to do Perl, check out "Learning Perl"
from O'Reilly and Associates and "CGI Programming with Perl 5 in 21 Days".
Both will get you underway fast.

Tim


Andrew Rich (dam...@beachnet.com) wrote:
: I'm running a web server on my machine here at work, and I'd like to try

: QUERY_STRING=name~Andrew&quest~Food&swallow~I+don7t+know


--
Tim Harvey rightWrite, Incorporated r...@teleport.COM (503) 246-4007

0 new messages