[Solved] Change File Attributes - VisualCron - Forum

Please note that VisualCron support is not actively monitoring this community forum. Please use our contact page for contacting the VisualCron support directly.


klewis10367
16 years ago
It would be nice to have a Change File Attribute task.
Sponsor
Forum information
cstump
15 years ago
I vote for that as well!

Chuck
Support
15 years ago
What attributes would you like to change? Readonly and hidden or?
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Support
15 years ago
Any feedback on this?
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Support
15 years ago
Feedback?
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
ErikC
12 years ago
Hi,

I found this feature request in a dark place...
Today I wanted to copy a file and overwrite an other file.
The destiniation file to overwrite was read only and the task failed.

I did not find any tasks specific to change a file attribute like the ready only flag.
I know I can use:

(powershell) sp file.txt IsReadOnly $false
(command) cmd.exe /c attrib -r file.txt

Would be nice to have the ability to realy overwrite files if I want to, or to have a task setting/clearing the Read-Only flag and all the other attributes (Archive/System/Hidden).


But I managed to do it with the powershell task for now [6.2.2].

Regards,
Erik
Uses Visualcron since 2006.
Support
12 years ago
Originally Posted by: ErikC 

Hi,

I found this feature request in a dark place...
Today I wanted to copy a file and overwrite an other file.
The destiniation file to overwrite was read only and the task failed.

I did not find any tasks specific to change a file attribute like the ready only flag.
I know I can use:

(powershell) sp file.txt IsReadOnly $false
(command) cmd.exe /c attrib -r file.txt

Would be nice to have the ability to realy overwrite files if I want to, or to have a task setting/clearing the Read-Only flag and all the other attributes (Archive/System/Hidden).


But I managed to do it with the powershell task for now [6.2.2].

Regards,
Erik



Great addition, we will add this.

Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Support
12 years ago
Originally Posted by: Support 

Originally Posted by: ErikC 

Hi,

I found this feature request in a dark place...
Today I wanted to copy a file and overwrite an other file.
The destiniation file to overwrite was read only and the task failed.

I did not find any tasks specific to change a file attribute like the ready only flag.
I know I can use:

(powershell) sp file.txt IsReadOnly $false
(command) cmd.exe /c attrib -r file.txt

Would be nice to have the ability to realy overwrite files if I want to, or to have a task setting/clearing the Read-Only flag and all the other attributes (Archive/System/Hidden).


But I managed to do it with the powershell task for now [6.2.2].

Regards,
Erik



Great addition, we will add this.



The readonly flag has been fixed in this version:

http://www.visualcron.co....aspx?g=posts&t=3339 

We will create a Set attributes Task later.

Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Scroll to Top