cryptor and Temp folder

VBS to EXE and JScript to EXE Compiler
Post Reply
guitarist24000
Posts: 1
Joined: Wed Dec 24, 2008 4:28 pm

cryptor and Temp folder

Post 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?
support
Site Admin
Posts: 476
Joined: Fri Feb 13, 2004 1:05 pm

Post by support »

Please note that each user have different TEMP folders.
c:\Documents and Settings\Username\Local settings\Temp
Captain.Chaos
Posts: 10
Joined: Sat Mar 14, 2009 9:12 pm

Post 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?
support
Site Admin
Posts: 476
Joined: Fri Feb 13, 2004 1:05 pm

Post 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
Post Reply