Filename Begins with tilde
-
riker45
- Posts: 1
- Joined: 09 Aug 2024 18:44
Filename Begins with tilde
When I open some folders, some of the filenames begin with a tilde (~) and dollar sign: ~$employee. It doesn't happen with every folder, just some of them. I am not caching folder sizes. How do I get rid of the tilde and dollar sign? Thanks
-
highend
- Posts: 14925
- Joined: 06 Feb 2011 00:33
- Location: Win Server 2022 @100%
Re: Filename Begins with tilde
And you are sure these are real files?
E.g. MS Office uses this prefix for temp file creation of opened files...
If yes, e.g. with a script...
E.g. MS Office uses this prefix for temp file creation of opened files...
If yes, e.g. with a script...
Code: Select all
$items = quicksearch(">^~\$.* /f", , , "s");
end (!$items), "No file(s) with '~$' prefix found...";
foreach($item, $items, <crlf>, "e") {
renameitem(regexreplace(gpc($item, "file"), "^~\$"), $item, , "-01");
}
status "Finished...";
One of my scripts helped you out? Please donate via Paypal
XYplorer Beta Club