English Amiga Board


Go Back   English Amiga Board > Support > support.Other

 
 
Thread Tools
Old 28 September 2019, 00:33   #1
Foebane
Banned
 
Join Date: Sep 2011
Location: Cardiff, UK
Age: 51
Posts: 2,871
Alternatives to ".bat" extension in files?

All of my Amiga-related files must have extensions like ADF and EXE and LHA, but I find that if I add BAT extensions to the script files I create for Amiga, and then put them in archives that I then add to email attachments, then Google Mail will flag them as ILLEGAL and fail their delivery, probably because they think that I'm delivering viruses or something.

So what other extension makes sense for Amiga scripts that might be ignored? I'm thinking:

.scr
.run

But is there anything else that applies to a 3-character extension? Sorry to be so restrictive, but even if the Amiga isn't, there are other apps I use that demand them.
Foebane is offline  
Old 28 September 2019, 02:05   #2
Devlin
Bane of Magic
 
Devlin's Avatar
 
Join Date: Nov 2005
Location: Bradford, UK
Age: 38
Posts: 335
.ash (Amiga SHell)

based off unix style .sh files, perhaps, though for an amiga script it'd likely have a .info attached with it (with c:iconx default tool)? so maybe an extension is not needed?
Devlin is offline  
Old 28 September 2019, 04:02   #3
Hewitson
Registered User
 
Hewitson's Avatar
 
Join Date: Feb 2007
Location: Melbourne, Australia
Age: 41
Posts: 3,773
Using an extension for an AmigaOS script is wrong. If you really must use one, I'd avoid ".run" as that is already used for some executables.

For example SFX archive util/arc/lha.run on aminet.

How about using LHA or LZX to create the archives? Surely Google won't scan those.
Hewitson is online now  
Old 28 September 2019, 04:04   #4
hiho
Registered User
 
Join Date: Feb 2013
Location: San Antonio, USA
Posts: 74
Can you just set the script flag?
hiho is offline  
Old 28 September 2019, 07:02   #5
Foebane
Banned
 
Join Date: Sep 2011
Location: Cardiff, UK
Age: 51
Posts: 2,871
Quote:
Originally Posted by Hewitson View Post
How about using LHA or LZX to create the archives? Surely Google won't scan those.
I use LHA, I thought Google wouldn't scan those either, but it did and it rejected the files as attachments.

I am seriously considering not bothering with an extension, following all of your friendly advice, because these scripts are solely on the Amiga side, whereas all the other Amiga files are on the Windows side and thus need extensions.

Quote:
Can you just set the script flag?
I already do
Foebane is offline  
Old 28 September 2019, 07:46   #6
hiho
Registered User
 
Join Date: Feb 2013
Location: San Antonio, USA
Posts: 74
Then why use any extension at all?
hiho is offline  
Old 28 September 2019, 07:50   #7
Ami
Registered User
 
Ami's Avatar
 
Join Date: Sep 2014
Location: Poland
Posts: 175
I use .dos or .ados extensions.
Ami is offline  
Old 28 September 2019, 08:56   #8
malko
Ex nihilo nihil
 
malko's Avatar
 
Join Date: Oct 2017
Location: CH
Posts: 4,857
and what about simple ".s" at the end of your filename?
malko is offline  
Old 28 September 2019, 09:32   #9
meynaf
son of 68k
 
meynaf's Avatar
 
Join Date: Nov 2007
Location: Lyon / France
Age: 51
Posts: 5,323
Quote:
Originally Posted by malko View Post
and what about simple ".s" at the end of your filename?
Don't do that, this is reserved for asm source code

I use ".script" for shell scripts, to remind me of what the file is for.
I may suggest ".scr" if really 3 letters are required, but i fail to see any valid reason for this.
meynaf is offline  
Old 29 September 2019, 10:23   #10
Foebane
Banned
 
Join Date: Sep 2011
Location: Cardiff, UK
Age: 51
Posts: 2,871
Made the changes yesterday; totally removed all the .bat extensions and no more error messages on GMail.
Foebane is offline  
Old 29 September 2019, 11:02   #11
demolition
Unregistered User
 
demolition's Avatar
 
Join Date: Sep 2012
Location: Copenhagen / DK
Age: 43
Posts: 4,190
If I need to attach archives to emails I sometimes remove the file extension completely from the attached archive which generally prevents any mail services from identifying the file as an archive. Not that it is hard to identify the archive type through the file header, but I guess they don't do that.
demolition is offline  
Old 29 September 2019, 11:25   #12
tomse
We need more scans!
 
tomse's Avatar
 
Join Date: Feb 2010
Location: Copenhagen / Denmark
Age: 48
Posts: 326
if you need to send files using email, you can try using send.firefox.com or wetransfer.com and paste the link it's also good for sending large files.
tomse is offline  
Old 29 September 2019, 12:16   #13
Foebane
Banned
 
Join Date: Sep 2011
Location: Cardiff, UK
Age: 51
Posts: 2,871
Quote:
Originally Posted by demolition View Post
If I need to attach archives to emails I sometimes remove the file extension completely from the attached archive which generally prevents any mail services from identifying the file as an archive. Not that it is hard to identify the archive type through the file header, but I guess they don't do that.
I wouldn't say that about GMail. If they're willing to recognise Amiga LHA files (what's an Amiga, many of their younger employees ask) within attachments, then they'll go further and examine the file headers, too.

Quote:
Originally Posted by tomse View Post
if you need to send files using email, you can try using send.firefox.com or wetransfer.com and paste the link it's also good for sending large files.
No, thanks. I'll stick with Yahoo! Mail and Google Mail.
Foebane is offline  
Old 29 September 2019, 16:44   #14
Foebane
Banned
 
Join Date: Sep 2011
Location: Cardiff, UK
Age: 51
Posts: 2,871
Speaking of "no extensions needed for scripts", are there ANY Amiga files that need extensions for identification? I would've thought archives would be one thing that is needed, if only for WinUAE to identify the files that are dragged and dropped into it!

I remember back when I was using real Amigas in the 1990s that extensions in filenames were fully optional, but then how do you tell what the files are? If the only way to tell what the file does is via the accompanying icon, then that's not much use if the icon is deleted!

All I can say is: thank God I moved to the PC with a much more reasonable filename system (from Win95 onwards at least) - I can only imagine the headaches and clutter that separate icons caused in the world of Amiga.
Foebane is offline  
Old 29 September 2019, 17:24   #15
idrougge
Registered User
 
Join Date: Sep 2007
Location: Stockholm
Posts: 4,332
Filename extensions are a seventies thing, just like all-caps filenames with only eight characters.

Thank God I moved to the Mac where changing a filename from .jpg to .bat doesn't make the system think the file is no longer a picture.
idrougge is offline  
Old 29 September 2019, 17:27   #16
daxb
Registered User
 
Join Date: Oct 2009
Location: Germany
Posts: 3,303
On Amiga you can identify file type by file header, file suffix or magic. RAW usually hasn't a file header.

It is better to identify file type by header then by some filename extension. It is more save this way. I don't know how Windows works nowadays but back then the identification by ".txt, .zip, ..." was stupid. Too easy to manipulate and make things not work.
daxb is offline  
Old 29 September 2019, 18:00   #17
Foebane
Banned
 
Join Date: Sep 2011
Location: Cardiff, UK
Age: 51
Posts: 2,871
Quote:
Originally Posted by daxb View Post
On Amiga you can identify file type by file header, file suffix or magic. RAW usually hasn't a file header.

It is better to identify file type by header then by some filename extension. It is more save this way. I don't know how Windows works nowadays but back then the identification by ".txt, .zip, ..." was stupid. Too easy to manipulate and make things not work.
Windows still works that way.

And to be honest, being able to change the extension makes it easy to hide things.
Foebane is offline  
Old 30 September 2019, 16:15   #18
Photon
Moderator
 
Photon's Avatar
 
Join Date: Nov 2004
Location: Eksjö / Sweden
Posts: 5,602
Extensions aren't really extensions on Amiga. They're optional and just part of the filename. Amiga goes by actual content to decide what to open the file with, not the name of the file. Other platforms are still waiting to be enlightened.

Just change the extension of a picture to .exe, and it's a virus Probably removing the extension is the best way to fool OSes and virus scanners alike. For a .bat file, .txt might suffice. For something foolproof, just compress it with a lesser known but fully functional archiver.
Photon is offline  
Old 30 September 2019, 17:46   #19
Foebane
Banned
 
Join Date: Sep 2011
Location: Cardiff, UK
Age: 51
Posts: 2,871
I have a couple of batch files on PC I can attach to emails by changing them to .txt, but the ones inside the LHA archive are not easy at all to change. But, as others have said, just remove the .lha and I'm good to go!
Foebane is offline  
Old 30 September 2019, 19:26   #20
Rotareneg
Registered User
 
Rotareneg's Avatar
 
Join Date: Sep 2017
Location: Kansas, USA
Posts: 324
Password protecting the archive will stop it from being scanned too.
Rotareneg is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
"Voices8" 8 Channel Soundtracker "DemoSongI" song - "This is the Amiga with 8 Voices" DemosongIHunter request.Music 45 23 May 2022 20:07
Creating a ".bat" file under CW, is it possible? Hache support.Apps 4 30 March 2014 01:21
"Reminder "Lincs Amiga User Group aka "LAG" Meet Sat 5th of January 2013" rockape News 4 30 January 2013 00:06
"bug" in GBA 1.43 Game update [RUNME.bat in Games pack zips with paths] OddbOd project.MAGE 2 30 August 2007 13:59
Amos extension "Craft2" frikilokooo request.Apps 5 30 July 2007 22:01

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 17:46.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.33457 seconds with 13 queries