I wrote a little script which is reading out a textfile that is located in a netlogon folder. In this file their are some paths in like C:\Users\%USERNAME%\AppData\Roaming\Folder\
.
My script is reading the textfile and have to delete this folder.
The Problem I think is that the script doesn't know how to handle %username%
. If i write C:\Users\myusername\AppData\Roaming\Folder\
in the textfile it seems to work.
How can I solve this problem?