Batch+ Project

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Message
Author
orange_batch
Expert
Posts: 442
Joined: 01 Aug 2010 17:13
Location: Canadian Pacific
Contact:

Re: Batch+ Project

#16 Post by orange_batch » 30 May 2011 01:09

:lol: Nerd wars. :)

I love the idea behind Powershell, but I don't quite understand how to code in it. I would learn, but it's not natively part of Windows XP or Vista, so not for my purposes at the moment.

Given that, I wonder if it's not better to learn AutoIt instead?

Cleptography
Posts: 287
Joined: 16 Mar 2011 19:17
Location: scriptingpros.com
Contact:

Re: Batch+ Project

#17 Post by Cleptography » 30 May 2011 01:13

I love autoit though a completely different kind of language built around gui apps, autoit is a fantastic wonderful thing.

Ed Dyreen
Expert
Posts: 1569
Joined: 16 May 2011 08:21
Location: Flanders(Belgium)
Contact:

Re: Batch+ Project

#18 Post by Ed Dyreen » 30 May 2011 01:16

@orange_batch
Given that, I wonder if it's not better to learn AutoIt instead?

AutoIT ROCKS 8)

It is definetly powerfull, I wonder what we can't do in AutoIT, apart from programming linux fcourse. However it is not qualified as a real programming language simply because it does many things without the programmers specific permission.
AutoIT programmers very well know the Au3 Icon inside the taskbar. But that's not a prob.

AutoIT should be one of the easiest to learn it uses BASIC like syntax, which is me favorite

Code: Select all

While 1 < 0
  Select
   Case 0 > 1
  endselect
Wend

What am I saying, it sucks ! We need to stick with DOS batch for XP :mrgreen:
Last edited by Ed Dyreen on 30 May 2011 02:16, edited 1 time in total.

Cleptography
Posts: 287
Joined: 16 Mar 2011 19:17
Location: scriptingpros.com
Contact:

Re: Batch+ Project

#19 Post by Cleptography » 30 May 2011 01:52

Autoit is a very powerful tool I have used it many of times but my understanding of the language is at a beginner level at best, as I have not gone into depth with it. c++ and c# have always been my tools of choice. As a side note if anyone is interested in learning more on powershell, and not trying to preach to the choir by any means, but I found this to a be a very helpful resource http://powershell.com/cs/blogs/ebook/

orange_batch
Expert
Posts: 442
Joined: 01 Aug 2010 17:13
Location: Canadian Pacific
Contact:

Re: Batch+ Project

#20 Post by orange_batch » 30 May 2011 02:21

Well, off-topic.

nitt, it turns out CURSOR does exactly what I need! So please, once again is it possible to program it to work without .NET? Thanks.

Ed Dyreen
Expert
Posts: 1569
Joined: 16 May 2011 08:21
Location: Flanders(Belgium)
Contact:

Re: Batch+ Project

#21 Post by Ed Dyreen » 30 May 2011 02:25

@orange_batch
It does not have cursor, but it has color though Bill Stewart's Site - Shell Scripting Toolkit:
http://www.westmesatech.com/sst.html
I am looking for the exact same thing, it should be possible though with C, but I don't have the skills :(

It definetly can be done with ansi.sys, it comes with XP, I just never tried it. Also I don't know whether it's for command or cmd.


↓↓↓ cause it's more than 3 clicks away :lol:
Last edited by Ed Dyreen on 30 May 2011 08:48, edited 5 times in total.

nitt
Posts: 218
Joined: 22 Apr 2011 02:43

Re: Batch+ Project

#22 Post by nitt » 30 May 2011 08:33

Why is it so hard to download .NET framework?

orange_batch
Expert
Posts: 442
Joined: 01 Aug 2010 17:13
Location: Canadian Pacific
Contact:

Re: Batch+ Project

#23 Post by orange_batch » 30 May 2011 11:44

Distributability.

nitt
Posts: 218
Joined: 22 Apr 2011 02:43

Re: Batch+ Project

#24 Post by nitt » 30 May 2011 12:04

orange_batch wrote:Distributability.


Batch has low distributability anyways.


Anyways, I updated the List with COMWRITER and DOWNLOAD. COMWRITER I wrote in C++ so it doesn't use .NET framework.

DOWNLOAD is used basically to download things from the internet.

Like "download http://www.urwebsite.com/urfile.txt c:\users\user\desktop\file.txt" will download the file onto the desktop. It can download any file, not just TXT.

COMWRITER is not part of Batch+. But I just thought it was cool. It's its own project by itself.

Cleptography
Posts: 287
Joined: 16 Mar 2011 19:17
Location: scriptingpros.com
Contact:

Re: Batch+ Project

#25 Post by Cleptography » 30 May 2011 12:21

nitt wrote:DOWNLOAD is used basically to download things from the internet.

Yes like this one line of autoit which will do the same thing.

Code: Select all

InetGet($CmdLine[1], @ScriptDir & "\..\" & $CmdLine[2])

Except it just moves back a dir in my case, but I could stick it on my desktop
c:\users\user\desktop\
:roll:
yawwwwn....

nitt
Posts: 218
Joined: 22 Apr 2011 02:43

Re: Batch+ Project

#26 Post by nitt » 30 May 2011 12:31

Cleptography wrote:
nitt wrote:DOWNLOAD is used basically to download things from the internet.

Yes like this one line of autoit which will do the same thing.

Code: Select all

InetGet($CmdLine[1], @ScriptDir & "\..\" & $CmdLine[2])

Except it just moves back a dir in my case, but I could stick it on my desktop
c:\users\user\desktop\
:roll:
yawwwwn....


...It does this and what? I don't get your point.

I just added LINECOLOR. It changes the color of the line your are one and further typed lines without effecting any of the other ones. There are plenty of these, but I just thought it'd be neat.

Anyone have any more requests?

Code: Select all

@echo off
:start
:getrandom
set rnd=%random%
if %rnd% GTR 9 goto getrandom
if %rnd% LSS 0 goto getrandom
linecolor %rnd% %rnd%
echo                                                               
goto start
Last edited by nitt on 30 May 2011 12:35, edited 1 time in total.

orange_batch
Expert
Posts: 442
Joined: 01 Aug 2010 17:13
Location: Canadian Pacific
Contact:

Re: Batch+ Project

#27 Post by orange_batch » 30 May 2011 12:33

nitt wrote:
orange_batch wrote:Distributability.


Batch has low distributability anyways.

Is that a "no" to making non-.NET versions then? That's all I ask, because I honestly cannot use these as is.

nitt
Posts: 218
Joined: 22 Apr 2011 02:43

Re: Batch+ Project

#28 Post by nitt » 30 May 2011 12:37

orange_batch wrote:
nitt wrote:
orange_batch wrote:Distributability.


Batch has low distributability anyways.

Is that a "no" to making non-.NET versions then? That's all I ask, because I honestly cannot use these as is.


Why?

Cleptography
Posts: 287
Joined: 16 Mar 2011 19:17
Location: scriptingpros.com
Contact:

Re: Batch+ Project

#29 Post by Cleptography » 30 May 2011 12:39

I would also like to see .net independent versions.
Good work nit I had a chance to check things out kudos.
:D

nitt
Posts: 218
Joined: 22 Apr 2011 02:43

Re: Batch+ Project

#30 Post by nitt » 30 May 2011 12:41

Cleptography wrote:I would also like to see .net independent versions.
Good work nit I had a chance to check things out kudos.
:D


Thanks, but there are no .NET independent versions because I coded them in C#.NET and you can't turn the framework off.

All of them use .NET except COMWRITER because COMWRITER isn't part of Batch+. I wrote that in C++ when I was bored one day.

Post Reply