English Amiga Board Amiga Lore


Go Back   English Amiga Board > Support > New to Emulation or Amiga scene

 
 
Thread Tools
Old 31 March 2013, 16:19   #1
Hockmiester
 
Posts: n/a
AmigaDos

Hi. When using the shell to copy from one drive to another could someone explain the commands?

For example: If I was copying from DH0: called 'System' a hello.txt file to DH1: called Work I assumed I would use

Copy hello.txt system:Work

It didn't seem to work.

Another example (not about copying)

I can get programs installed no problems by following the tutorials such as this by typing lha x programs:WHDLoad_usr.lha programs:

but I'd like to understand better what I'm typing despite it working in this instance.

Is the first 'programs' the location of the file and the final one the destination of the install? Whats the x for and why start lha? (I understand the WHDLoad_usr.lha is the file I working with) but I'd like to understand the rest of the command because I hate blindly typing things because when it doesn't work (like copy) I'm stuck.

Cheers
 
AdSense AdSense  
Old 31 March 2013, 17:13   #2
daxb
Registered User
 
Join Date: Oct 2009
Location: Germany
Posts: 1,725
You always can type (in a shell) the command with a "?" following to get the template. For example:

Code:
copy ?
FROM/M,TO/A,ALL/S,QUIET/S,BUF=BUFFER/K/N,CLONE/S,DATES/S,NOPRO/S,COM/S,NOREQ/S:
Example:
copy FROM work:folder/morefolder/filename TO ram: CLONE

You can leave FROM and TO but you should use CLONE as default. In the AmigaDOS manual you have a description of all OS commands.

For LHA just type "lha ?" in a shell to get some short help but read the documentation.
daxb is offline  
Old 01 April 2013, 08:13   #3
mailman
Zone Friend

mailman's Avatar
 
Join Date: Jun 2005
Location: Warsaw/Poland
Age: 38
Posts: 2,270
Quote:
Originally Posted by Hockmiester View Post
Hi. When using the shell to copy from one drive to another could someone explain the commands?

For example: If I was copying from DH0: called 'System' a hello.txt file to DH1: called Work I assumed I would use

Copy hello.txt system:Work
You should type:

Copy SYSTEM:hello.txt Work:

or

Copy FROM SYSTEM:hello.txt TO Work:
mailman is offline  
Old 02 April 2013, 08:01   #4
ajk
Registered User
ajk's Avatar
 
Join Date: May 2010
Location: Helsinki, Finland
Posts: 914
@Hockmiester

The syntax with lha is "lha x archive.lha (target)", target will be the current directory if you specify nothing else.

You are not "installing" anything really, you are unpacking an .lha archive just like you would a .zip/.rar/.tar.gz on other systems. It just often happens to be the case that programs do not require any further installation, but they might.

The option "x" means unpack. Check the lha docs for more if you are interested.
ajk is offline  
AdSense AdSense  
 


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
AmigaDOS question brolly support.Other 9 23 August 2012 02:12
AmigaDos Guide? spookt New to Emulation or Amiga scene 2 15 December 2009 14:44
AmigaDOS scripts lloyd Coders. General 2 22 November 2004 19:47
AmigaDOS Swordlord New to Emulation or Amiga scene 28 05 March 2004 23:31
AmigaDOS help BippyM Amiga scene 1 08 July 2003 23:46

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 18:21.


Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Page generated in 0.10960 seconds with 11 queries