Results 11 to 20 of 24
Thread: how to make...
Enjoy an ad free experience by logging in. Not a member yet? Register.
See, here's the thing. Most Windows users don't have Python or Perl installed on their machines. Every Windows user can run the following files:
- A Batch script (Batch is the DOS scripting language)
- An executable compiled for MS-32 systems
99% of Windows users can also run Java, since so many websites and applications use it.
Having no experience with Batch or Java, do you know C or C++? So long as you use only standard libraries, C and C++ are 100% portable. You would need to compile it on a Windows machine, but it would work.
no i dont know C or C++...i started with lealning programming languages last week.....
anyway no more help needed...im to big noob.....
You have quite a simple file - in this case all you need to do is
- Remove the shabang (#!/bin/bash)
- Replace 'clear' with 'cls'
- Save it in a file ending with .bat or .cmd
Of course I normally would dissapprove of such scripts....but it's obviously just a prank and I have been known to play a few of those
By the way, if you want to add some beeps to the script in windows/dos, use this codeCode:
echo echo ^g >> script.bat
I forgo to mention - '#' is not a comment mark in windows/dos. You need to use 'REM', though there is a placeholder ':'
Usually you would typeCode:
:Start echo Some message ::the goto will return to 'start', also note the case-insensitivity ::the double colon is treated as a comment as it is an uninterpretable placeholder ::especially when used mulitple times goto start
yes i have alredy deleted it -comment
anyway thanks again...that realy works..
Originally Posted by X.Cyclop
- Join Date
- Aug 2006
Originally Posted by Cabhan
- Join Date
- Aug 2006
you can program quick batches with DOS, but when it comes to tasks like text manipulation,date/time , etc , DOS loses that capability. Although you can program it in DOS, but it takes a lot of code to do that. It also depends whether the coder has the time to do that or not.
Java, yes, it is a language for the web, but not for batching or scripting. Not saying Java cannot be used for scripting tasks, but how much code does it need just to print out "hello world" , which you can do it simply in perl/python/batch like this : print "hello world"?? echo hello world ?
C/C++: you need a compiler .. it's not compile once , use anywhere (correct me if i am wrong) and unless you are doing game programming involving graphics, writing device drivers, low level interfacing etc, i would say C/C++ is not really the best tool if you want to do scripting or batching.