ProBatch Server v1.0

Discuss how to write good code, break bad code, your current pet projects, or the best way to approach novel problems

ProBatch Server v1.0

Post by barneystinson19 on Wed Feb 27, 2013 4:55 pm
([msg=74241]see ProBatch Server v1.0[/msg])

Hello! I've added new features to my Batch server I've made.

1- It can responses Http requests so it can be used in localhost via port 8080
2- Added GET and POST methods so you can use variables which the client sent.
Image:
http://b1302.hizliresim.com/16/v/kl1gs.png
http://dfiles.eu/files/wps1xs02m <-- Download Link
https://www.virustotal.com/tr/file/aeb90ceae7020f475bd641435751ce3ff623bc816ae8e5dcdd829a1a3ddee12e/analysis/ <-- Virustotal

Usage of GET & POST:
File: http://localhost:8080/index.buta
Code: Select all
<%pbat
@echo off
cls
:: ^ These are needed for sort directory information
:: GET Method
set _var1=#_GET('htmlelement1')
::POST Method
set _var2=#_POST('htmlelement2')
%>
"Ömür dediğin üç gündür, dün geldi geçti yarın meçhuldür…O halde ömür dediğin bir gündür,o da bugündür…."
User avatar
barneystinson19
Experienced User
Experienced User
 
Posts: 50
Joined: Fri Nov 02, 2012 3:49 pm
Blog: View Blog (0)


Re: ProBatch Server v1.0

Post by WallShadow on Wed Feb 27, 2013 5:47 pm
([msg=74245]see Re: ProBatch Server v1.0[/msg])

Barney awesome code, though i will warn you about 1 thing, batch tends to have serious problems when you use :: as comments inside parenthesis, so as a rule of thumb, always use REM, or else you may have to struggle like i did for hours because my IF statement didn't like the :: inside of it.
User avatar
WallShadow
Contributor
Contributor
 
Posts: 594
Joined: Tue Mar 06, 2012 9:37 pm
Blog: View Blog (0)


Re: ProBatch Server v1.0

Post by barneystinson19 on Thu Feb 28, 2013 1:26 pm
([msg=74272]see Re: ProBatch Server v1.0[/msg])

Thanks for info and your comment :)
"Ömür dediğin üç gündür, dün geldi geçti yarın meçhuldür…O halde ömür dediğin bir gündür,o da bugündür…."
User avatar
barneystinson19
Experienced User
Experienced User
 
Posts: 50
Joined: Fri Nov 02, 2012 3:49 pm
Blog: View Blog (0)


Re: ProBatch Server v1.0

Post by KthProg on Thu Feb 28, 2013 2:59 pm
([msg=74274]see Re: ProBatch Server v1.0[/msg])

You know what I find strange?
You can still use :Rem in VBA,VB and i think VB.Net despite the fact that its origins predate them more than 50 years now lol.
The standard is to use ' though.
Also could you explain to me what a batch server is please?
User avatar
KthProg
Poster
Poster
 
Posts: 219
Joined: Wed Jan 23, 2013 7:06 pm
Blog: View Blog (0)


Re: ProBatch Server v1.0

Post by centip3de on Thu Feb 28, 2013 4:34 pm
([msg=74277]see Re: ProBatch Server v1.0[/msg])

KthProg wrote:You know what I find strange?
You can still use :Rem in VBA,VB and i think VB.Net despite the fact that its origins predate them more than 50 years now lol.
The standard is to use ' though.
Also could you explain to me what a batch server is please?


If I remember correctly, he coded something that interprets Batch to PHP (or some-other server-side language) so that he can code things such as a login form, or anything else that requires a server-side language in Batch and HTML rather than something like PHP and HTML.
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. -Rick Cook
User avatar
centip3de
Moderator
Moderator
 
Posts: 1423
Joined: Fri Aug 20, 2010 5:46 pm
Blog: View Blog (0)


Re: ProBatch Server v1.0

Post by KthProg on Thu Feb 28, 2013 6:06 pm
([msg=74283]see Re: ProBatch Server v1.0[/msg])

Coool.
Does it convert the source code or the compiled code @_@?
User avatar
KthProg
Poster
Poster
 
Posts: 219
Joined: Wed Jan 23, 2013 7:06 pm
Blog: View Blog (0)


Re: ProBatch Server v1.0

Post by barneystinson19 on Fri Mar 01, 2013 1:58 pm
([msg=74309]see Re: ProBatch Server v1.0[/msg])

centip3de wrote:
KthProg wrote:You know what I find strange?
You can still use :Rem in VBA,VB and i think VB.Net despite the fact that its origins predate them more than 50 years now lol.
The standard is to use ' though.
Also could you explain to me what a batch server is please?


If I remember correctly, he coded something that interprets Batch to PHP (or some-other server-side language) so that he can code things such as a login form, or anything else that requires a server-side language in Batch and HTML rather than something like PHP and HTML.

Actually it executes the batch script between <%pbat and %> tags then takes output from executed script and replaces batch code with output in html code then sends it to client. So batch is the server-side language itself.

KthProg wrote:Coool.
Does it convert the source code or the compiled code @_@?


Same answer to this question too.
"Ömür dediğin üç gündür, dün geldi geçti yarın meçhuldür…O halde ömür dediğin bir gündür,o da bugündür…."
User avatar
barneystinson19
Experienced User
Experienced User
 
Posts: 50
Joined: Fri Nov 02, 2012 3:49 pm
Blog: View Blog (0)


Re: ProBatch Server v1.0

Post by LoGiCaL__ on Sun Mar 03, 2013 1:09 pm
([msg=74338]see Re: ProBatch Server v1.0[/msg])

This is a good example of sticking with a project, listening to what people have to say and move back to the development phase. Nice going man.
User avatar
LoGiCaL__
Addict
Addict
 
Posts: 1060
Joined: Sun May 30, 2010 12:33 pm
Blog: View Blog (0)


Re: ProBatch Server v1.0

Post by barneystinson19 on Sun Mar 03, 2013 1:33 pm
([msg=74339]see Re: ProBatch Server v1.0[/msg])

LoGiCaL__ wrote:This is a good example of sticking with a project, listening to what people have to say and move back to the development phase. Nice going man.

It's very nice to hear that thanks for your support :)
"Ömür dediğin üç gündür, dün geldi geçti yarın meçhuldür…O halde ömür dediğin bir gündür,o da bugündür…."
User avatar
barneystinson19
Experienced User
Experienced User
 
Posts: 50
Joined: Fri Nov 02, 2012 3:49 pm
Blog: View Blog (0)


Re: ProBatch Server v1.0

Post by KthProg on Sat Mar 09, 2013 8:49 am
([msg=74426]see Re: ProBatch Server v1.0[/msg])

Coool good job lol
User avatar
KthProg
Poster
Poster
 
Posts: 219
Joined: Wed Jan 23, 2013 7:06 pm
Blog: View Blog (0)



Return to Programming

Who is online

Users browsing this forum: No registered users and 0 guests