Quantcast
Channel: VMware Communities : Popular Discussions - VMware ThinApp: Discussion Forum
Viewing all articles
Browse latest Browse all 57744

How to delete a folder using the vbs script?

$
0
0

I write a vbs script  to delete a folder OnLastProcessExit:

 

-


Function OnLastProcessExit

Set FSO = CreateObject("Scripting.FileSystemObject")

Set WshShell = CreateObject("Wscript.Shell")

AppPath = WshShell.SpecialFolders("AppData") //Get the paht of the "Application Data"

FinalPath= AppPath & "\Thinstall\myapp"

FSO.DeleteFolder FinalPath,force

End Function

-


 

And in the "Package.ini":

I have set that: SandboxName=myapp, and left the SandboxPaht default

 

But after I build my thinstalled app, run and exit it, then, there is a scritp error(Microsoft VBScript Runtime error), and the description is that: can not find the path!

 

What's the porblem?

 

Please give me some help, Thank you...


Viewing all articles
Browse latest Browse all 57744

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>