Cyote101 Posted March 15, 2008 Posted March 15, 2008 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,
BrettF Posted March 15, 2008 Posted March 15, 2008 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... Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version!
ludocus Posted March 15, 2008 Posted March 15, 2008 (edited) Hi, umm.. If i'm thinking what you want it would look like this for me: CODEFileChangeDir('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 March 15, 2008 by ludocus
Kip Posted March 15, 2008 Posted March 15, 2008 (edited) I dont think that's what he meant, Ludo. Edited March 15, 2008 by kip MailSpons: Fake SMTP server for safe email testing Dutch postcode & address API.
ludocus Posted March 15, 2008 Posted March 15, 2008 Thnx, Your absolutly right.. I will fix it as soon as I can.. But do have some kentucky fried chicken before you go!
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now