Location of embedded files

Convert your BATch files into EXEcutable format in one click.
Post Reply
steph78630
Posts: 8
Joined: Tue Oct 09, 2018 12:53 pm

Location of embedded files

Post by steph78630 »

Hello all,

when I add an external file (embedded file) in the EXE file, during the execution it appears in a subfolder whose name seems randomly generated (qb...), for eg. :

C:\Users\UserName\AppData\Local\qb1222BDF.E2\my_embedded_file.vbs
or
C:\Windows\Temp\qbDA0163.B1\my_embedded_file.vbs
or
D:\My documents\My projects\qb127BA0E.E8\my_embedded_file.vbs


...Then it is difficult to run the embedded file from the compiled script

My config : Quick Batch File Compiler v. 4.3.0.2 (registered version)
support
Site Admin
Posts: 476
Joined: Fri Feb 13, 2004 1:05 pm

Re: Location of embedded files

Post by support »

Use %MYFILES% environment variable to get the path to embedded files.
steph78630
Posts: 8
Joined: Tue Oct 09, 2018 12:53 pm

Re: Location of embedded files

Post by steph78630 »

Ok, thanks, I will try this !
hacxx
Posts: 5
Joined: Sun Jul 16, 2017 11:06 am

Re: Location of embedded files

Post by hacxx »

Yes, use %MYFILES% as the path to your embedded file.
steph78630
Posts: 8
Joined: Tue Oct 09, 2018 12:53 pm

Re: Location of embedded files

Post by steph78630 »

Indeed, it works, thank you @support @hacxx !

For those who would like to run an embedded file from the EXE file (for eg. VBS file):

start "" %MYFILES%"\personal_file.vbs"
Post Reply