Hello,
is there a way to display OneDrive file status as a column?
I would like to be able to search for files which are Available when Online only.
I can see that TC can display the correct overlay icon of such files
but I cannot find the way how to search such files in folder.
Thanks.
OneDrive file status in WDX
Moderators: Hacker, petermad, Stefan2, white
- ghisler(Author)
- Site Admin
- Posts: 50934
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: OneDrive file status in WDX
No, unfortunately not. You can use shelldetails.Attribute >= 4194304 to find files which are available online only.
This is the value of FILE_ATTRIBUTE_RECALL_ON_DATA_ACCESS.
This is the value of FILE_ATTRIBUTE_RECALL_ON_DATA_ACCESS.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Re: OneDrive file status in WDX
chrabros2chrabros2 wrote: 2025-06-26, 15:59 UTC I would like to be able to search for files which are Available when Online only.
FYI, you can also use PowerShell for that:
filesAlwaysInCloud.ps1:
Code: Select all
'Attributes >= 4194304 (0x00400000) FILE_ATTRIBUTE_RECALL_ON_DATA_ACCESS : Available online only|Always in cloud'
'Attributes : Relative path'|Write-Host -f Green
Get-ChildItem -path $pwd -file -recurse -force|Where{$_.Attributes -ge 4194304}|foreach{
'{0} (x{0:X}) : {1}' -f $_.Attributes,[IO.Path]::GetRelativePath($pwd,$_)}
pause
Code: Select all
[em_filesAlwaysInCloudPS]
cmd=pwsh -c "%commander_path%\Plugins\PowerShell\filesAlwaysInCloud.ps1"
Code: Select all
[em_filesAlwaysInCloud]
cmd=pwsh -c 'Online-only files';ls -file -rec -for|Where{$_.Attributes -ge 4194304}|foreach{
param='{0} (x{0:X}) : {1}' -f $_.Attributes,[IO.Path]::GetRelativePath($pwd,$_)};pause
a user command in combination with a user button:
Select online-only files (if any) in the Total Commander active panel
a user command (usercmd.ini):
Code: Select all
[em_filesAlwaysInCloudSelect]
cmd=pwsh -c ls -file -for|Where{$_.Attributes -ge 4194304}|foreach{Set-Clipboard $_.Name -append}
Code: Select all
TOTALCMD#BAR#DATA
em_filesAlwaysInCloudSelect,cm_LoadSelectionFromClip
WCMICON2.DLL
0
-1
#278521 User License
Total Commander [always the latest version, including betas] x86/x64 on Win10 x64/Android 16
Total Commander [always the latest version, including betas] x86/x64 on Win10 x64/Android 16