Adding Additional files

VBS to EXE and JScript to EXE Compiler
Post Reply
Stonecrop
Posts: 2
Joined: Mon Mar 31, 2008 4:51 pm

Adding Additional files

Post by Stonecrop » Thu Apr 03, 2008 11:55 am

How is the "Embedded Files" feature intended to work? If I embed a file that is used by my script, the file cannot be found when the compiled executable runs.

support
Site Admin
Posts: 404
Joined: Fri Feb 13, 2004 1:05 pm

Post by support » Fri Apr 04, 2008 4:33 pm

You can select the output forlder for embedded files during compilation:

- TEMP folder
- APPDATA folder
- current folder

feneque
Posts: 1
Joined: Thu Feb 19, 2009 4:58 pm

Extract embedded files before script OPTION

Post by feneque » Thu Feb 19, 2009 5:07 pm

Hello,
Extract embedded files before script execution dont work.
I am trying to extract 2 exe files to apptdata. My script execute this exe with parameters, but it is not working because dont extract exe to appdata.
Why?
Help please

support
Site Admin
Posts: 404
Joined: Fri Feb 13, 2004 1:05 pm

Post by support » Fri Feb 27, 2009 6:10 pm

How you call extracted files? You should specify full path, so if you select APPDATA then you need a function that return full-qualifyed file name.

For example, this fulction will show path to APPDATA:

dim filesys, f
Set filesys = CreateObject("Scripting.FileSystemObject")
Set f = filesys.GetSpecialFolder(2)
wscript.echo f

Post Reply