dim f as folderitem
f = newfolderitem("%userprofile%\AppData\Local\Packages\Microsoft.Windows.ContentDeliveryManager_cw5n1h2txyewy\LocalState\Assets",FolderItem.PathModes.Native)
f.open
If the user is yourself, build up a folderitem using.child
dim f as folderitem
f = specialfolder.applicationdata // this is userprofile/AppData
if f <> nil and f.exists then
f = f.child("Local")
end if
if f <> nil and f.exists then
f = f.child("Packages")
end if
if f <> nil and f.exists then
f = f.child("Microsoft.Windows.ContentDeliveryManager_cw5n1h2txyewy")
end if
if f <> nil and f.exists then
f = f.child("LocalState")
end if
if f <> nil and f.exists then
f = f.child("Assets")
end if
f.open
If the user is not yourself, you probably dont have permission to look there.
That w5n1h2txyewy looks pretty specific - Im not sure it will be ‘the same for everyone’
I havent added any error handling to the IF statements - obviously they all need an ‘else’ because any of them could fail.
Finally, you may find that the best way to find the path is to read a registry setting, but I have no idea what that folder is about.
This is perfect Jeff, It is pretty specific but it is for personal use to take me to where Microsoft store their lock-screen backgrounds with ease It is also to teach me more about folder items etc… Thank you for the help!