Welcome, Guest. Please login or register.

Author Topic: fixing executables that lost the executable flag  (Read 1729 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline pVC

Re: fixing executables that lost the executable flag
« on: May 15, 2009, 09:02:15 AM »
Quote

spirantho wrote:
Not directly but you can do it with the list command. I can't remember the syntax exactly but :

Code: [Select]

LIST ALL LFORMAT "protect %f +e" >runme
execute runme



Doesn't "protect #? +e ALL" do the same?

In any case, it's not good idea to backup system/program files to "alien" filesystem as they are. Besides executable flags there are also scirpt and pure flags on many files etc. It's better to archive files before saving to other filesystem or make image with MakeCD with amiga attributes on and save the image or use dedicated backup program or... In my opinion the best way to backup is to have another media with amiga filesystem and "copy #? dest: all clone". Then you also preserve file dates and comments and everything.
Daily MorphOS user and Amiga active.
 

Offline pVC

Re: fixing executables that lost the executable flag
« Reply #1 on: May 15, 2009, 09:15:40 AM »
Though LhA and LZX can take painfully long time on slow cpu or big systems. Other methods I described are better in that aspect. But it depends of your current situation always..
Daily MorphOS user and Amiga active.
 

Offline pVC

Re: fixing executables that lost the executable flag
« Reply #2 on: May 16, 2009, 07:56:59 AM »
Try to unpack it with LZX (it knows lha too). I think it continues after errors and only broken files will be left unpacked.
Daily MorphOS user and Amiga active.