| View previous topic :: View next topic |
| Author |
Message |
guitarist24000
Joined: 24 Dec 2008 Posts: 1
|
Posted: Wed Dec 24, 2008 4:31 pm Post subject: cryptor and Temp folder |
|
|
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? |
|
| Back to top |
|
 |
|
|
support Site Admin
Joined: 13 Feb 2004 Posts: 299
|
Posted: Mon Dec 29, 2008 10:33 pm Post subject: |
|
|
Please note that each user have different TEMP folders.
c:\Documents and Settings\Username\Local settings\Temp |
|
| Back to top |
|
 |
Captain.Chaos
Joined: 14 Mar 2009 Posts: 10
|
Posted: Sat Mar 14, 2009 9:22 pm Post subject: |
|
|
| 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? |
|
| Back to top |
|
 |
support Site Admin
Joined: 13 Feb 2004 Posts: 299
|
Posted: Mon Mar 16, 2009 11:07 pm Post subject: |
|
|
You can get the TEMP folder location:
dim filesys, f
Set filesys = CreateObject("Scripting.FileSystemObject")
Set f = filesys.GetSpecialFolder(2)
wscript.echo f |
|
| Back to top |
|
 |
|