Is it possible to set the "Read Only" property of a file when you use the CopyFile function?
Rory
Setting properties with CopyFile
Moderators: JRL, Dorian (MJT support)
- Marcus Tettmar
- Site Admin
- Posts: 7395
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
No, CopyFile doesn't let you change file attributes. I would just do:
Let>RP_WAIT=1
Run>cmd.exe /c attrib +r %filename%
Let>RP_WAIT=1
Run>cmd.exe /c attrib +r %filename%
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
- Marcus Tettmar
- Site Admin
- Posts: 7395
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
Only if you don't want the script to wait for any subsequent Run Program commands to finish. RP_WAIT=1 makes the script wait for the Run command to complete (rather than just starting the command and continuing). So if you have any subsequent Run commands and you don't want that behaviour for them set RP_WAIT to zero.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?