Hack Forums
[Shell] My first Batch program (simple program/link shortcuts) - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118)
+---- Thread: [Shell] My first Batch program (simple program/link shortcuts) (/showthread.php?tid=2765244)



My first Batch program (simple program/link shortcuts) - SIM-1400293 - Aug 10, 2012

Hey guys,
I know it's nothing impressive and a lot of the beginner stuff being re-used, but it does whatever I wanted to achieve with it.

Here's the code:
Spoiler (Click to View)

Also, I was wondering... Is there a way to make a batch program send emails?


* - Five Finger Death Punch - Aug 10, 2012

I think you should add google to the list of websites to go to.


* - Dat Ting - Aug 10, 2012

not bad, not bad at all. keep up the good work man.


* - RichPrince100 - Aug 10, 2012

Ok when I first started coding batch was the first one i learn't even back in the day it was called a scriptkiddies lang and you got no respect for posting it even if it was the bee's knees...
ok so first add some goto commands something like this
@echo off
title hello
:start
echo hello
ping localhost -n 3 >null
echo
goto start
then add some kind of feature which counts how many times this has happend and pulls it out of the loop just give it a shot thats how i learn't
hope i helped listen


* - SIM-1400293 - Aug 10, 2012

Thanks for the feedback guys, I really do appreciate it!


* - Hidden™ - Aug 10, 2012

It is a nice first program, good work.


* - blatant lie - Aug 10, 2012

guys, what does the cls do? im still a skiddie


* - CMOSDeaD - Aug 10, 2012

(Aug 10, 2012 12:52 PM)iiTom Wrote:  "Start C:\Users\Tom\Desktop\Opera.lnk http://youtube.com"

If someone were to use this one thing is that I don't think everyone's name is Tom.

(Aug 10, 2012 05:35 PM)blatant lie Wrote:  guys, what does the cls do? im still a skiddie
cls means Clear screen which basically... Clears screen.


* - THUG x WRECK - Aug 10, 2012

For:
Code
Start C:\Users\Tom\Desktop\Opera.lnk http://youtube.com

Use:
Code
Start opera http://youtube.com



* - SIM-1400293 - Aug 11, 2012

(Aug 10, 2012 08:59 PM)CMOSDeaD Wrote:  If someone were to use this one thing is that I don't think everyone's name is Tom.

cls means Clear screen which basically... Clears screen.

Of course not, I never posted it for it to work for others :)
And tbh, anyone who knows a little about batch could fix that to work for him/her :)


* - Dan4655 - Sep 1, 2012

Hey man nice first batch file its alot of beginner stuff but atleast it was way better than my first bat file :D