This forum uses cookies. Click X button to hide this message. What is stored? 
Total Commander Forum Index Total Commander
Forum - Public Discussion and Support
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

OneDrive on demand sync

 
Post new topic   Reply to topic    Total Commander Forum Index -> Total Commander (English) Printable version
View previous topic :: View next topic  
Author Message
eschweighofer
Junior Member
Junior Member


Joined: 10 Jul 2017
Posts: 3

PostPosted: Mon Jul 10, 2017 3:10 am    Post subject: OneDrive on demand sync Reply with quote

Hello,

seems like the latest version of TC does not support the new On Demand sync feature of One Drive. This works in a way that first time I try to open a file OneDrive will download it to local disk, next time it is open from the local copy.

Any plans to add this support?

Thanks
Erik
Back to top
View user's profile Send private message
Horst.Epp
Power Member
Power Member


Joined: 06 Feb 2003
Posts: 2540
Location: Germany

PostPosted: Mon Jul 10, 2017 3:16 am    Post subject: Reply with quote

What mode you are talking about ?
OneDrive access by TC plugin or the local OneDrive client tree ?
TC has no influence how the local client works.
_________________
Windows 10 x64 Creators Update Build 15063.540
TC 9.0a x64 and x86
Back to top
View user's profile Send private message
Stefan2
Power Member
Power Member


Joined: 13 Sep 2007
Posts: 1566
Location: Europa

PostPosted: Mon Jul 10, 2017 3:20 am    Post subject: How to access OneDrive with TC? Reply with quote

Hello and welcome, Erik

As far as I know, TC utilize a plugin to access the cloud.

Do you happen to utilize that plugin >
https://ghisler.ch/board/viewtopic.php?t=41512&highlight=onedrive

See Configuration> Options... > Plugins > WFX > [Configure]

If not, you may want to try that plugin, or wait for an answer of the Author Mr. Ghisler...



Or maybe other members will point you in the right direction.



 
Back to top
View user's profile Send private message
ghisler(Author)
Site Admin
Site Admin


Joined: 04 Feb 2003
Posts: 33961
Location: Switzerland

PostPosted: Mon Jul 10, 2017 7:38 am    Post subject: Reply with quote

If you mean files in the file system: There doesn't seem to be a documented function to detect such files, or to download them. What you can do is right click (for about 1 second) and then open the file, this should trigger the download.
_________________
Author of Total Commander
http://www.ghisler.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
eschweighofer
Junior Member
Junior Member


Joined: 10 Jul 2017
Posts: 3

PostPosted: Wed Jul 12, 2017 5:11 am    Post subject: Reply with quote

Hello guys,

I meant, local files. The sync is done with the OneDrive Sync app, but on demand (new feature in the latest OneDrive sync client. It means by default I can see all my OneDrive files "as local files" but they are not really downloaded to my disk. This happens only when I a) first open it b) I select the file to be kept on my PC.
Total cmd is not able to open such a file even it is downloaded. I assume this is because is is only some shortcut to a local OneDrive cache...

I did some further tests and the trick seems to be not to open it with a <ENTER> by via right click (Windows standard content menu) and this causes to launch it "from windows" not "from totalcmd".

as this was my first post, I was not able to add links...

Thanks
Erik
Back to top
View user's profile Send private message
eschweighofer
Junior Member
Junior Member


Joined: 10 Jul 2017
Posts: 3

PostPosted: Wed Jul 12, 2017 5:14 am    Post subject: Reply with quote

Here a overview of this new feature : https://blogs.office.com/en-us/2017/05/11/introducing-onedrive-files-on-demand-and-additional-features-making-it-easier-to-access-and-share-files/
Back to top
View user's profile Send private message
Horst.Epp
Power Member
Power Member


Joined: 06 Feb 2003
Posts: 2540
Location: Germany

PostPosted: Wed Jul 12, 2017 5:49 am    Post subject: Reply with quote

eschweighofer wrote:
Hello guys,

I meant, local files. The sync is done with the OneDrive Sync app, but on demand (new feature in the latest OneDrive sync client. It means by default I can see all my OneDrive files "as local files" but they are not really downloaded to my disk. This happens only when I a) first open it b) I select the file to be kept on my PC.
Total cmd is not able to open such a file even it is downloaded. I assume this is because is is only some shortcut to a local OneDrive cache...

I did some further tests and the trick seems to be not to open it with a <ENTER> by via right click (Windows standard content menu) and this causes to launch it "from windows" not "from totalcmd".

as this was my first post, I was not able to add links...

Thanks
Erik

From the Microsoft article:
Files On-Demand is coming to Windows Insider Preview early this summer and will be publicly available with the Windows 10 Fall Creators Update
So there is no actual need for testing as its not avilable for normal users.
_________________
Windows 10 x64 Creators Update Build 15063.540
TC 9.0a x64 and x86
Back to top
View user's profile Send private message
Hacker
Moderator
Moderator


Joined: 06 Feb 2003
Posts: 10534
Location: Bratislava, Slovakia

PostPosted: Wed Jul 12, 2017 2:08 pm    Post subject: Reply with quote

Horst.Epp,
Quote:
normal users

"Normal users" are those who use Explorer. Wink

Roman
_________________
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
Back to top
View user's profile Send private message Send e-mail
ghisler(Author)
Site Admin
Site Admin


Joined: 04 Feb 2003
Posts: 33961
Location: Switzerland

PostPosted: Thu Jul 13, 2017 2:20 am    Post subject: Reply with quote

It is available already for files in the "OneDrive" folder now. Apparently Microsoft didn't care to update Windows API functions like ShellExecuteEx or CopyFileEx (used by TC) to handle such files.
_________________
Author of Total Commander
http://www.ghisler.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
ghisler(Author)
Site Admin
Site Admin


Joined: 04 Feb 2003
Posts: 33961
Location: Switzerland

PostPosted: Mon Jul 17, 2017 8:23 am    Post subject: Reply with quote

I found out why this happens - because the OneDrive folder is reported with FILE_ATTRIBUTE_REPARSE_POINT attribute. Total Commander tries to resolve this reparse point before calling ShellExecuteEx as a workaround to a bug in Windows (ShellExecuteEx fails if the launched EXE is in a path containing relative links). This is done with the function call:
DeviceIoControl(hdir,FSCTL_GET_REPARSE_POINT,...

The problem is that this call returns success, but the reported reparse point target is an empty string. Total Commander therefore calls ShellExecuteEx with wrong parameters.

I will fix it in the next version.

For now, just right click on the file and choose "Open" or its name to open it.
_________________
Author of Total Commander
http://www.ghisler.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Total Commander Forum Index -> Total Commander (English) All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Impressum: This site is maintained by Ghisler Software GmbH

Using phpBB © 2001-2005 phpBB Group