Page 1 of 1

cryptor and Temp folder

Posted: Wed Dec 24, 2008 4:31 pm
by guitarist24000
i embeded 4 files that should be extracted to C:\windows\temp\
the vbs script goes there and tries the program that should be in there however the exe does not place it in there it works if i manually place it there otherwise the operation fails why is the exe not placing it there when i clearly have it set to in the embeded files?

Posted: Mon Dec 29, 2008 10:33 pm
by support
Please note that each user have different TEMP folders.
c:\Documents and Settings\Username\Local settings\Temp

Posted: Sat Mar 14, 2009 9:22 pm
by Captain.Chaos
The problem that I have is that I've got thirty or forty users all with different usernames and I need to copy the embedded files in to different locations. The %temp% variable doesn't work in VBS & I can't find anyway of specifying the exactly where the files are extracted to so that I can copy them into the correct location that works with lots of different users and both in XP & Vista. Is there a possibility of a fourth option to specify an absolute path for the embedded file extraction?

Posted: Mon Mar 16, 2009 11:07 pm
by support
You can get the TEMP folder location:

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