More...
Products
Social Connection
Are you looking for...
- VBScript to EXE Compiler
- MIDI to WAV MP3 Converter
- How to record Spotify music
- How to record Rhapsody stream?
- Audio Logger
- Vista Sound Recorder
- Record streaming audio
- How to transpose music?
- Record Skype Calls
- WAV Recorder
- How to slow down music
- How to record music from MySpace?
- Voice Recorder
- FLAC converter MP3
- Convert FLAC to M4A
Embedded FilesAs you already know, all EXE files contain several sections. One section is used to store application resources. So why not use it to store files, required for the script? We call this feature - Embedded Files. To add files, select the "Embedded Files" tab and click the "Add" button. At compile time, all files will be compressed and added to the resources section. After you run the compiled application embedded files will be unpacked before running main script and placed in a temporary folder. The environment variable %MYFILES% contains path to that folder. After running the script all the files will be removed. For example, you want to display a program manual when you use the -HELP switch. To do this, create a text file "help.txt" with program help and add it in the embedded files. In the main script use this code: TYPE "%MYFILES%\help.txt" PAUSEComplile the project and run executable from command line with "-HELP" switch. Program will show manual and wait for user input. If the text does not fit on the screen then use the MORE command will be a good idea. |