I have a project that copies a bunch of files from the cd to a folder on the hard drive.
My problem is when it copies them, it puts the read only attribute on them. So, I wanted to change all of the attributes after they have been copied, but AMS will only do it one at a time. It says in the help file that I can use a file execute action to run the attrib command, and that I can use wildcards. I don't know much about the attrib command, but I tried to follow it's usage instructions, and didn't get anywhere. So my main questions are
1. What is the comand I would use to remove the read only attribute from all files in all folders contained in a folder?
Example attrib -r c:\games\Galactic Battlegrounds\*.* etc.
This is how I understood I should do it after reading the instructions when I typed attrib /? at the command prompt like the help suggested.
2. How do I run the attrib command from the file execute action, and where does all the -r /s etc. stuff go?
3. Can I use a variable in the path to the folder?
I checked a bunch of dos help sites, and tried all of their examples, but could not get it to work.
Thanks
Rob
My problem is when it copies them, it puts the read only attribute on them. So, I wanted to change all of the attributes after they have been copied, but AMS will only do it one at a time. It says in the help file that I can use a file execute action to run the attrib command, and that I can use wildcards. I don't know much about the attrib command, but I tried to follow it's usage instructions, and didn't get anywhere. So my main questions are
1. What is the comand I would use to remove the read only attribute from all files in all folders contained in a folder?
Example attrib -r c:\games\Galactic Battlegrounds\*.* etc.
This is how I understood I should do it after reading the instructions when I typed attrib /? at the command prompt like the help suggested.
2. How do I run the attrib command from the file execute action, and where does all the -r /s etc. stuff go?
3. Can I use a variable in the path to the folder?
I checked a bunch of dos help sites, and tried all of their examples, but could not get it to work.
Thanks
Rob
Comment