Disable File Auto Refresh

Support for all customers who have purchased a SAPIEN PowerShell Studio product license. This forum does not offer a response time guarantee.
Forum rules
DO NOT POST SUBSCRIPTION NUMBERS, LICENSE KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
User avatar
RadHaz75
Posts: 4
Joined: Wed Mar 22, 2017 11:44 am

Disable File Auto Refresh

Post by RadHaz75 » Thu Apr 06, 2017 7:47 am

I save my files to my OneDrive synced folder. Every single time I click the save button in PowerShell Studio 1-5 minutes later I am prompted to refresh the file for some reason. Sometimes I accidentally click Yes and lose a bunch of work that I haven't saved yet and wind up extremely frustrated. How can I disable this feature? I've scoured the Options page, but the setting isn't evident to me.

User avatar
DevinL
Site Admin
Posts: 1098
Joined: Mon Aug 17, 2015 2:25 pm

Re: Disable File Auto Refresh

Post by DevinL » Thu Apr 06, 2017 9:28 am

This isn't a PowerShell Studio feature, and we believe it's OneDrive that's causing the issue.

Can you try placing the files in another folder and see if the refresh persists?
DevinL
SAPIEN Technologies, Inc.

User avatar
DevinL
Site Admin
Posts: 1098
Joined: Mon Aug 17, 2015 2:25 pm

Re: Disable File Auto Refresh

Post by DevinL » Thu Apr 06, 2017 9:45 am

[TOPIC MOVED TO POWERSHELL STUDIO FORUM BY MODERATOR]
DevinL
SAPIEN Technologies, Inc.

User avatar
DevinL
Site Admin
Posts: 1098
Joined: Mon Aug 17, 2015 2:25 pm

Re: Disable File Auto Refresh

Post by DevinL » Thu Apr 06, 2017 9:47 am

I apologize, I misunderstood and the auto-refresh is indeed a feature in PowerShell Studio. However, this is because the file is being modified elsewhere and when this is detected, you receive the notification asking if you want to use the newly found changes, which is why we believe OneDrive is modifying the file in the background.

Also, I've moved this thread to the PowerShell Studio forum since you do have a license and this is a product related question. For future reference, if you have any more issues with PowerShell Studio or any of our other products, please be sure to post it in the product support forums.
DevinL
SAPIEN Technologies, Inc.

User avatar
RadHaz75
Posts: 4
Joined: Wed Mar 22, 2017 11:44 am

Re: Disable File Auto Refresh

Post by RadHaz75 » Thu Apr 06, 2017 10:06 am

I know OneDrive is what is causing the file to appear to have been modified. I'm not going to save my files elsewhere because it would require re architecting tons of processes and procedures I have developed over years.

How do I turn the auto-refresh feature off in PowerShell Studio?

User avatar
DevinL
Site Admin
Posts: 1098
Joined: Mon Aug 17, 2015 2:25 pm

Re: Disable File Auto Refresh

Post by DevinL » Thu Apr 06, 2017 10:50 am

Unfortunately, there currently isn't a way to disable this.

Can you provide some information regarding your platform? Which OS are you using/bitness? Also, do you happen to have the offline mode enabled in OneDrive?
DevinL
SAPIEN Technologies, Inc.

User avatar
RadHaz75
Posts: 4
Joined: Wed Mar 22, 2017 11:44 am

Re: Disable File Auto Refresh

Post by RadHaz75 » Thu Apr 06, 2017 11:36 am

I am running Windows 10 Enterprise 64-bit using OneDrive for Business in synchronized mode.

User avatar
DevinL
Site Admin
Posts: 1098
Joined: Mon Aug 17, 2015 2:25 pm

Re: Disable File Auto Refresh

Post by DevinL » Fri Apr 07, 2017 9:34 am

So far I've had no luck reproducing this on our end, however, I'm testing with a regular OneDrive account as I do not have a OneDrive Business license to test with at the moment.

That being said, we are looking into this and as soon as we have some more information we'll be sure to post it here.
DevinL
SAPIEN Technologies, Inc.

User avatar
DevinL
Site Admin
Posts: 1098
Joined: Mon Aug 17, 2015 2:25 pm

Re: Disable File Auto Refresh

Post by DevinL » Mon Apr 10, 2017 8:43 am

Would you please try testing this with files saved outside of your OneDrive folder and verify the issue persists? This is to verify that the issue is indeed OneDrive and not an issue buried within PowerShell Studio or your system.
DevinL
SAPIEN Technologies, Inc.