Welcome, Guest. Please login or register.

Author Topic: How to generate .info when copying files to PC volumes...?  (Read 3187 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline hotchalupaTopic starter

  • Newbie
  • *
  • Join Date: Mar 2007
  • Posts: 31
    • Show all replies
How to generate .info when copying files to PC volumes...?
« on: March 15, 2007, 07:44:37 AM »
I've been using a combination of ADF Terminal Sender (PC side) + Receive.bas (Amiga side) to transfer files from my PC to my A1000...  The file transfers work like a charm, but here's my dilemma:

- If I transfer an executable, it does not carry its attributes (executable bit), so the file is a simple binary on the Amiga.

- I have a very limited WB 1.3 boot floppy that has none of the important commands (such as protect...or even list/copy/makedir...etc!), so no way for me to go to a CLI window and alter files through command line.

- Because of the first bullet above, transferring any of the standard (and important for what I'm trying to accomplish) commands from the PC into the SYS:c/ directory is useless because they come through as plain binaries with no executable bit set.

Now, at some point during me experimenting with file transfers, I copied a few files from an ADF (happened to be the standard WB 1.3.4 image included with Amiga Forever) to a mounted Windows volume using the Amiga Forever provided WB 3.1 environment.  I simply dragged and dropped these files and it actually generated respective .info files for them... When I transferred the files over to the A1000's RAM: disk, on their own they were unusable, but when I transferred the corresponding .info to the same path, the files became useable.

I have since been unable to duplicate this, although I've noticed there are, by default, .info's residing in specific ADF directories but mostly accompanying directory names (I guess holding the dir icon data, etc).  I want to be able to generate these for executable files so that I can transfer these and make them work on the A1000.

My ultimate goal is to be able to transfer the important AmigaDOS commands and "transdisk" or "transADF" so that I can actually start sending disk images to my A1000, one of which contains the necessary stuff to boot into a WB 1.3 environment with all the messyDOS stuff in it, which will in turn make life a lot easier for me.

Any ideas?  :-?
 

Offline hotchalupaTopic starter

  • Newbie
  • *
  • Join Date: Mar 2007
  • Posts: 31
    • Show all replies
Re: How to generate .info when copying files to PC volumes...?
« Reply #1 on: March 15, 2007, 08:11:57 AM »
Thanks for your reply!

There is no way to change the properties through the GUI in WB 1.3 that I have found, so that isn't an option (was the first thing I looked into).

The protect command suffers from the same issue when I transfer it over from the PC to the Amiga, it is no longer considered an executable.

The only copy of WB 1.3 (full) that I had is in a disk that became utterly corrupt and crashes my Amiga whenever I insert it into any drive.  For this reason I've been working off of a game boot disk that happened to use WB 1.3, albiet a very minimal configuration (missing pretty much every vital command).

So, back to the .info issue... Is there a way to generate or force the file to be created along with the executable file when dragging and dropping, or copying through a command shell, onto any volume (Amiga or PC)?  Having such file created is the key here, it seems.. I don't know what I did different when they were generated when I copied the first few files... I don't think I'm doing anything different.  :roll:

This is a catch22 situation and it is frustrating.  :madashell:
 

Offline hotchalupaTopic starter

  • Newbie
  • *
  • Join Date: Mar 2007
  • Posts: 31
    • Show all replies
Re: How to generate .info when copying files to PC volumes...?
« Reply #2 on: March 15, 2007, 09:22:14 AM »
I really appreciate you offering to do that (not to mention, taking the time to read my entire post), but before we proceed with that route, I think I'm going to try and explain the scenario in more detail...

I have a WB 1.3 full ADF image (actually, a few including the one in the Amiga Forever CD), but my problem isn't locating a copy of Protect (or any of the utilities I need)...

On the Amiga side, I have nothing at my disposal (no LHa, unzip, or other type of utility).  I have a plain vanilla WB 1.3 boot environment lacking most system commands.

On the PC side I have the Amiga Forever provided environments (WB 1.3, WB 3.1, etc), and various images with the files that I need.

Where the process breaks is that my only venue for getting any of these needed files to the Amiga is via the ADF Terminal Sender (or WarTrans also, both work) via null modem cable from the PC.  In order for any files to be transferred in this fashion, I must copy them over to a DOS/Windows volume (be it a floppy disk or just a directory in my PC's hard drive).  When the file systems are mounted in WB (1.3 or 3.1), any files copied to them maintain their attributes... That is, I can actually manipulate them as executables from within Workbench, while residing in a non-Amiga volume.  However, when I transfer the file via null modem cable using any of the methods mentioned above, the only thing being sent is the file's raw binary data itself... The file system information that contains the attribute information for each file in the directory (which is not part of the file itself) is not sent along with the file.  This is to be expected.

Locating a copy of Protect, transdisk...or even an LHa or unzip compression utility is no issue, I've got those.. But unfortunately I have them on the PC side, so sending them over makes them lose all their attributes, so we're back to square one.

There has got to be a way to have the OS generate these .info files that are file specific (as opposed to the directory ones, or the plain ".info" that is often created in the root directory).  It happened once and I wasn't even trying to do so purposely, so there has got to be a way...

I'm hoping someone is able to shed some light.   :-(
 

Offline hotchalupaTopic starter

  • Newbie
  • *
  • Join Date: Mar 2007
  • Posts: 31
    • Show all replies
Re: How to generate .info when copying files to PC volumes...?
« Reply #3 on: March 15, 2007, 09:55:32 AM »
" 3. Buy a Workbench disk :) "

You mean the ADF's in Amiga Forever don't count as buying?  :-D

Okay, so I can get to a command prompt by hitting Ctrl D during startup... I then type loadwb and I get WB + the AmigaDOS shell still open... Since the disk I have happens to have AmigaBASIC in it, too, if I type AmigaBASIC from the command prompt it loads up, so I know that's working...  Also, when I transfer a file, such as transwarp, to my RAM disk, if I type RAM:transwarp I get an "Unable to load RAM:transwarp: Error code 121", which I believe is the same as saying it does not have a "default tool" associated with it (since it's seeing the file as a plain file).

So close, yet so far away...  It's almost like a hanging carrot in front of a race horse...

Oh well, the ordeal was so that I could do this without having to wait for a WB disk to arrive in the mail or something along those lines... Impatient, I guess.  :-P

Everything's pointing towards me being stuck in the good ol' chicken and the egg situation.  

I did try using the .info from another executable by naming it transwarp.info (for example), but the results are catastrophic... The Guru couldn't even trap this one.  :-o
 

Offline hotchalupaTopic starter

  • Newbie
  • *
  • Join Date: Mar 2007
  • Posts: 31
    • Show all replies
Re: How to generate .info when copying files to PC volumes...?
« Reply #4 on: March 15, 2007, 11:20:19 AM »
There's a chance I can get a good copy of WB 1.3 by Saturday.  All problems will be solved then!

Thanks for helping me brainstorm...wait, scratch that... realize that I hit a dead end.  I would've spent another day or two  :horse: and going  :crazy:

 :-D
 

Offline hotchalupaTopic starter

  • Newbie
  • *
  • Join Date: Mar 2007
  • Posts: 31
    • Show all replies
Re: How to generate .info when copying files to PC volumes...?
« Reply #5 on: March 16, 2007, 12:07:36 AM »
OMG... Persistance has paid off!!  I figured it out...

So, #1) Do not use ADF Terminal Sender unless you have a full blown (7 wire) null modem cable... In my case, I have a Ghetto-Riffic HotChalupa Limited Edition 3 wire (RX/TX/SG) cable I jerryrigged out of a parallel laplink cable and a DB9 gender converter (female on both sides).

However... Such cable works perfect (no file corruption) with WarTrans at 9600bps...

#2) You must set the file attribute in DOS/Windows to System (attrib +s)!!  I tried this and it worked!!  I can now use Protect (and any other system command I send from my PC to my Amiga's C: directory)!

Now the only drawback with his method is speed... WarTrans is about 10 times slower than ADF Terminal Sender, even at 9600 bps... But it does not rely on the RTC/DTC signals so you can use it with a cheaply made ghetto cable (as mentioned above) without losing any data during the transfer.

Hopefully if anyone runs into this problem also, they'll be able to find this post right away.. I'd hate to know others lost as much sleep as myself over this!  (Okay, so it's my fault for being impatient...but at least I got it working!)

 :-D
 

Offline hotchalupaTopic starter

  • Newbie
  • *
  • Join Date: Mar 2007
  • Posts: 31
    • Show all replies
Re: How to generate .info when copying files to PC volumes...?
« Reply #6 on: March 17, 2007, 12:04:57 AM »
@motorollin

I know!  But weirdness is good when it solves an issue! :cheers:

@InTheSand

I actually made a custom WB1.3 disk with everything I need for transferring... I've been using transwarp at 28800 bps and so far every disk I've xferred from PC->Amiga has worked flawlessly.

It takes 5 minutes and 17 ~ 18 seconds (varies by 1 second, lol) to transfer a full, uncompressed, 880k ADF, and since it's writing directly to a floppy, it's a single action process..

In the price-to-performance arena, this beats a Catweasel Mk4 by a few punches! ;)

One thing's for sure, though... I'm an Amiga n00b, and yet this whole process has thought me a whole lot more about AmigaDOS and WB than I had been able to learn with casual useage in the last few years!

It was more of a challenge than a cost-saving measure.  The Catweasel Mk4 is still in my AmigaKit shopping cart... Maybe during a moment of weakness I will click on the Checkout button.  :-D
 

Offline hotchalupaTopic starter

  • Newbie
  • *
  • Join Date: Mar 2007
  • Posts: 31
    • Show all replies
Re: How to generate .info when copying files to PC volumes...?
« Reply #7 on: March 17, 2007, 03:16:29 AM »
@InTheSand

So tempting...  Maybe I'll order it afterall.

A good selling point (aside from all the other disk formats it supports), is that I can use it with Amiga Forever...

Does WinUAE 1.4 support CW as DF0 device?