i want to write a script that runs on WinXP 32 Bit and Win7 64 Bit.
It should delete the file "preferences" in the profile
WinXP
"C:\Documents and Settings\Administrator\Local Settings\Application Data\Google\Chrome\User Data\Default\Preferences"
or
Win7
"C:\Users\jeggert\AppData\Local\Google\Chrome\User Data\Default\Preferences"
i ve written a script like this but i do not work:
Dim LocalAppData, WshShell, objFSO
Set WshShell = CreateObject("Wscript.Shell")
Set objFSO = CreateObject("Scripting.FileSystemObject")
LocalAppData = WshShell.ExpandEnvironmentStrings("%LocalAppData%")
objFSO.DeleteFile(LocalAppData & "\Google\Chrome\User Data\Default\preferences")
Can anybody help me ?
greetings
Joe
It should delete the file "preferences" in the profile
WinXP
"C:\Documents and Settings\Administrator\Local Settings\Application Data\Google\Chrome\User Data\Default\Preferences"
or
Win7
"C:\Users\jeggert\AppData\Local\Google\Chrome\User Data\Default\Preferences"
i ve written a script like this but i do not work:
Dim LocalAppData, WshShell, objFSO
Set WshShell = CreateObject("Wscript.Shell")
Set objFSO = CreateObject("Scripting.FileSystemObject")
LocalAppData = WshShell.ExpandEnvironmentStrings("%LocalAppData%")
objFSO.DeleteFile(LocalAppData & "\Google\Chrome\User Data\Default\preferences")
Can anybody help me ?
greetings
Joe