- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'm trying to write a vbscript that create a file at first use.
It's working like a charm except that the file is created on the real filesystem and not in the sandbox.
Is it possible to write the file inside the sandbox ?
Here my basic script:
Dim filesys, filetxt
Set filesys = CreateObject("Scripting.FileSystemObject")
Function OnFirstSandboxOwner
FileName = "c:\FirstTimeUse.txt"
if Not filesys.FileExists(FileName) Then
MsgBox "!!! Attention !!!" & vbCrLf & "The first time use may take severals seconds to open databases." & vbCrLf & vbCrLf &"La première utilisation peu prendre plusieurs secondes à ouvrir les bases de données."
End If
Set filetxt = filesys.CreateTextFile(FileName, True)
filetxt.WriteLine("True")
filetxt.Close
Thanks in advance for your help !