Jump to content
Sign in to follow this  
HackerZer0

Batch file "compiler"... problem

Recommended Posts

HackerZer0

I have been trying to create a batch file compiler in autoit... because i can't find a free one that works with Windows XP... I tried to create a script that searched for *.bat files, and made another script that included them with FileInstall, then compiled that script... but the includes didn't work with variables, and i didn't want to have to edit the script for every program I made in Batch...

then i tried making a script that searched for *.bat files and read each line, then wrote it to a new script that would write those line to a batch file when run...

ex:

batch file contains:

@echo off

echo hi how are you?

Press any key to exit..

pause > nul

exit

script reads first line "@echo off" then write a new .au3 file with this line.

FileWriteLine("myfile.bat", "@echo off")

Using this line of code:

( $line represents the line of the batch file that was read )

FileWriteLine("prog.au3", 'FileWriteLine("myfile.bat", ' & $line & '")

but it wont work and i think it has somthing to do with the quotes...

i keep getting

FileWriteLine("myfile.bat", L ")

in the new prog.au3 file....

i have no idea why...

PLEASE HELP ME!!

thx : )

Share this post


Link to post
Share on other sites
/dev/null

you better post the whole code, otherwise nobody knows what you are doing wrong ....


__________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf *

Share this post


Link to post
Share on other sites
/dev/null

i got angry and deleted it... lol

Ah, O.K. so the problem has been solved. Fine!


__________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf *

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×