English Amiga Board


Go Back   English Amiga Board > Support > support.Other

 
 
Thread Tools
Old 28 September 2019, 01:33   #1
Foebane
Registered User
 
Join Date: Sep 2011
Location: Cardiff, UK
Age: 47
Posts: 1,826
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, 03:05   #2
Devlin
Bane of Magic

Devlin's Avatar
 
Join Date: Nov 2005
Location: Bradford, UK
Age: 33
Posts: 322
.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, 05:02   #3
Hewitson
Registered User
Hewitson's Avatar
 
Join Date: Feb 2007
Location: Melbourne, Australia
Age: 37
Posts: 3,383
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 offline  
Old 28 September 2019, 05:04   #4
hiho
Registered User
 
Join Date: Feb 2013
Location: San Antonio, USA
Posts: 60
Can you just set the script flag?
hiho is offline  
Old 28 September 2019, 08:02   #5
Foebane
Registered User
 
Join Date: Sep 2011
Location: Cardiff, UK
Age: 47
Posts: 1,826
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, 08:46   #6
hiho
Registered User
 
Join Date: Feb 2013
Location: San Antonio, USA
Posts: 60
Then why use any extension at all?
hiho is offline  
Old 28 September 2019, 08:50   #7
Ami
Registered User

 
Join Date: Sep 2014
Location: Poland
Posts: 71
I use .dos or .ados extensions.
Ami is offline  
Old 28 September 2019, 09:56   #8
malko
Ex nihilo nihil

malko's Avatar
 
Join Date: Oct 2017
Location: CH
Posts: 2,289
and what about simple ".s" at the end of your filename?
malko is offline  
Old 28 September 2019, 10:32   #9
meynaf
son of 68k
meynaf's Avatar
 
Join Date: Nov 2007
Location: Lyon / France
Age: 46
Posts: 3,605
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, 11:23   #10
Foebane
Registered User
 
Join Date: Sep 2011
Location: Cardiff, UK
Age: 47
Posts: 1,826
Made the changes yesterday; totally removed all the .bat extensions and no more error messages on GMail.
Foebane is offline  
Old 29 September 2019, 12:02   #11
demolition
Unregistered User
demolition's Avatar
 
Join Date: Sep 2012
Location: Copenhagen / DK
Age: 39
Posts: 3,971
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, 12:25   #12
tomse
We need more scans!

tomse's Avatar
 
Join Date: Feb 2010
Location: Copenhagen / Denmark
Age: 44
Posts: 314
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, 13:16   #13
Foebane
Registered User
 
Join Date: Sep 2011
Location: Cardiff, UK
Age: 47
Posts: 1,826
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, 17:44   #14
Foebane
Registered User
 
Join Date: Sep 2011
Location: Cardiff, UK
Age: 47
Posts: 1,826
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, 18:24   #15
idrougge
Registered User
 
Join Date: Sep 2007
Location: Stockholm
Posts: 3,927
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, 18:27   #16
daxb
Registered User
 
Join Date: Oct 2009
Location: Germany
Posts: 2,379
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, 19:00   #17
Foebane
Registered User
 
Join Date: Sep 2011
Location: Cardiff, UK
Age: 47
Posts: 1,826
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, 17:15   #18
Photon
Moderator

Photon's Avatar
 
Join Date: Nov 2004
Location: Eksjö / Sweden
Posts: 4,772
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, 18:46   #19
Foebane
Registered User
 
Join Date: Sep 2011
Location: Cardiff, UK
Age: 47
Posts: 1,826
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, 20:26   #20
Rotareneg
Registered User

 
Join Date: Sep 2017
Location: Kansas, USA
Posts: 99
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 44 27 October 2019 20:04
Creating a ".bat" file under CW, is it possible? Hache support.Apps 4 30 March 2014 03:21
"Reminder "Lincs Amiga User Group aka "LAG" Meet Sat 5th of January 2013" rockape News 4 30 January 2013 01:06
"bug" in GBA 1.43 Game update [RUNME.bat in Games pack zips with paths] OddbOd project.MAGE 2 30 August 2007 14:59
Amos extension "Craft2" frikilokooo request.Apps 5 30 July 2007 23: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 12:52.


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