WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

Examples

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

URLEncode/URLDecode Example

Keywords:  URLEncode  URLDecode	 

;**************************************************************************
;	     URLEncode/URLDecode DEMONSTRATOR
;
; This sample app will urlencode & urldecode a string you give it.
;
; Run this file from WinBatch, optionally with 2 params:
;     URLEncode.WBT
;
;
; Author: Jennifer Palonus (GDI)
; 
;  Date	   Major changes
; -------  ----------------------------------------------------------------
; 08apr96  Cloned from WILScanForm.wbt.
; 08apr96  
;**************************************************************************
sTitle = "URLEncoding/Decoding"


AddExtender ("wwwsk34I.dll")


sPlain = ""

while (@TRUE)
	sPlain = AskLine (sTitle, "Enter the plain string:", sPlain)
	sEncoded = URLEncode (sPlain)

	sMsg = strcat ("Original string:   ", sPlain, @CRLF, "urlencoded string: ", sEncoded)
	Message (sTitle, sMsg)
	
	sEncoded = AskLine (sTitle, "Enter the encoded string:", sEncoded)
	sPlain = URLDecode (sEncoded)

	sMsg = strcat ("Encoded string: ", sEncoded, @CRLF, "Plain string:   ", sPlain)
	Message (sTitle, sMsg)
endwhile


Article ID:   W12640
Filename:   URLEncode and URLDecode Example.txt
File Created: 2001:03:01:15:12:24
Last Updated: 2001:03:01:15:12:24