OneDrive file status in WDX

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
chrabros2
New Member
New Member
Posts: 1
Joined: 2025-06-26, 15:56 UTC

OneDrive file status in WDX

Post by *chrabros2 »

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.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50934
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: OneDrive file status in WDX

Post by *ghisler(Author) »

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.
Author of Total Commander
https://www.ghisler.com
User avatar
beb
Power Member
Power Member
Posts: 594
Joined: 2009-09-20, 08:03 UTC
Location: Odesa, Ukraine

Re: OneDrive file status in WDX

Post by *beb »

chrabros2 wrote: 2025-06-26, 15:59 UTC I would like to be able to search for files which are Available when Online only.
chrabros2
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
user command (usercmd.ini):

Code: Select all

[em_filesAlwaysInCloudPS]
cmd=pwsh -c "%commander_path%\Plugins\PowerShell\filesAlwaysInCloud.ps1"
or a user command (usercmd.ini) without a standalone script:

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
or

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}
a user button:

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
Post Reply