Página 1 de 1

How to delete a file in AppData Folder

Publicado: 31 Ago 2014 19:46
por Holly
Hi Forum, I tried some methods but no results here.
I need to delete the following file:

C:\Users\GenericUserName\AppData\Roaming\MyFile.txt

This path is on Win 7 and later, obviously I need it works on Win XP too.

Please help me with this enviromental variable.

THANKS TO ALL!

Publicado: 31 Ago 2014 20:57
por carsonzillo
Hi:
Are you using setup factory or Ams 8?

Publicado: 01 Sep 2014 00:40
por Holly
I use AMS8, on the IR Forum I found a lot of solution but only for SF9.

Publicado: 01 Sep 2014 03:38
por Dow Sher
Try this script:
File.Delete(Shell.GetFolder(SHF_APPLICATIONDATA).."\\MyFile.txt");

Publicado: 01 Sep 2014 05:08
por Holly
It's PERFECT!
Thank you so much man.

Publicado: 04 Sep 2014 17:45
por kauster72
gracias