Jump to content

Just a Question


Recommended Posts

Hello, I know this is probably not a true Auto-it question.

I have created a bundle of software on CD and I was wondering if anyone out there knows of program that will in effect compile the whole CD into a single exe file. The intention is to attempt to hide the simplicity of my CD.

Thanks,

Link to comment
Share on other sites

Hello, I know this is probably not a true Auto-it question.

I have created a bundle of software on CD and I was wondering if anyone out there knows of program that will in effect compile the whole CD into a single exe file. The intention is to attempt to hide the simplicity of my CD.

Thanks,

You could include all the files needed in the script and file install to a temp dir and run it from there... :)
Link to comment
Share on other sites

Hi, umm.. If i'm thinking what you want it would look like this for me:

CODE
FileChangeDir('e:\') ;depends on what drive your cd is in..

$dr = FileExists (@DesktopDir&"\cdGET")

if $dr = 0 then

DirCreate ( @DesktopDir&"\cdGET" ) ;Creates a directory for your files to be placed in.. <<

EndIf

$search = FileFindFirstFile('*.*') ;finds the first file in e:\

; Check if the search was successful

If $search = -1 Then

MsgBox(0, "Error", "No files/directories matched the search pattern")

Exit

EndIf

$cp = 'start.txt' ;this was just a little... error.. well don't look at it :)

$count = 2 ;it starts at 2 because of.. umm... well Hard to explain :S

While 1

$file = FileFindNextFile($search)

$cp = $cp&':'&$file ;some math stuff

$count = $count + 1 ;again some math, this took me like 10 minutes, it's pretty hard,,

If @error Then ExitLoop

WEnd

; Close the search handle

FileClose($search)

$cop = stringsplit ( $cp, ':' ) ;it took me some time to figure out I had to do it like this to see how many files the dir contains.

$c = 2

do

FileCopy ( $cop[$c], @DesktopDir&'\cdGET\'&$cop[$c] ) ;this is the copying part..

$c = $c + 1 ;mat, math, math and more math..

until $c = $count

msgbox ( 0, "Succes", "Jay.., All files copied from cd drive to desktopdir\cdGET" )

;you could use this script to see how many files there are in a directory or Drive..

;Created by ludocus

Edited by ludocus
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...