Newsgroups: microsoft.public.scripting.vbscript
From: "PaulM" <N...@NONO.COM>
Date: Thu, 5 Nov 2009 17:54:44 -0500
Local: Thurs, Nov 5 2009 10:54 pm
Subject: Script
Why does this script work:
' Description: Demonstration script that uses the FileSystemObject to delete Set WSHShell = WScript.CreateObject("WScript.Shell") objFSO.DeleteFile("F:\Users\TestUser\AppData\Local\test.vbs") And this script does not work: ' Description: Demonstration script that uses the FileSystemObject to delete Dim Windir Set WSHShell = WScript.CreateObject("WScript.Shell") objFSO.DeleteFile("%SystemRoot%\%Users%\%UserProfile%\%AppData%\%Local%\tes t.vbs") You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||