![]() |
|
|||||||
| Register | >> Amiga FAQ/Wiki << | Rules & Help | Members List / Moderators List | Search | Today's Posts | Mark Forums Read |
![]() |
|
|
Thread Tools |
|
|
#1 |
|
Registered User
Join Date: Feb 2003
Location: Lancashire
Age: 38
Posts: 431
|
Dumb AmigaDOS Question
OK this must be obvious, but how do I specify the current directory as a target when copying files? I want the AmigaDOS equivalent of "." in MS-DOS.
AmigaDOS copy demands a source and destination path (unlike MS-DOS where destination can be omitted) but I can't remember how to specify "here" as the destination path ![]() Alternatively, lets be lazy and do it in the GUI. I used to use CLIMate on my A500. On a 1200 what is the best modern equivalent, is it Directory Opus? Is it free on the Amiga? |
|
|
|
|
|
#2 |
|
Registered User
Join Date: Aug 2001
Location: Germany
Age: 40
Posts: 3,704
|
You can use wildcards in CLI as well, but it´s not "*.*" but "#?" .... so if you want to copy all files from df0: to ram: it would be : COPY DF0:#? to RAM: or better COPY DF0: to RAM: ALL
![]()
__________________
--~~= RetroMan =~~-- -= AmigA =- -= ForeveR =- |
|
|
|
|
|
#3 |
|
Give up the ghost
Join Date: Apr 2001
Location: U$A
Age: 22
Posts: 4,662
|
There are countless little shell apps on Aminet that will allow you to use the * wildcard, among tons of other cool shell extensions.
|
|
|
|
|
|
#4 |
|
Junior Member
Join Date: Mar 2002
Location: Australia
Age: 39
Posts: 267
|
To indicate the current directory you have to specify an empty string: ""
eg: cd ram: copy df0:myfile "" The file "myfile" will be copied from device "DF0" to the current directory (RAM ![]() It always annoyed me that they didn't use "*" as a standard wildcard in AmigaDos. There are some PD shells (zshell) that allow '*' and possibly other command formats that are more user-friendly. |
|
|
|
|
|
#5 |
|
Give up the ghost
Join Date: Apr 2001
Location: U$A
Age: 22
Posts: 4,662
|
Or you could always use the alias command in your shell-startup. I haven't actually tried aliasing wildcards, but theoretically it should work.
Oh if the PC only had an alias command or better yet, the assign command. Or a shell. (sigh) |
|
|
|
|
|
#6 | |
|
Junior Member
Join Date: Mar 2002
Location: Australia
Age: 39
Posts: 267
|
Quote:
![]() |
|
|
|
|
|
|
#7 |
|
Moderator
Join Date: Jan 2003
Location: ...
Age: 41
Posts: 1,680
|
That only happens if you allow automatic drive letter assignment for the host device.
Also you may want to use UNC instead of dos path, that is the only way to go e.g. for a service - though this is not really Win9X/dos stuff... |
|
|
|
|
|
#8 | |
|
Registered User
Join Date: Feb 2003
Location: Lancashire
Age: 38
Posts: 431
|
Quote:
A bit strange though - ""Interesting to see that #? is the wildcard. Being a bit rusty I've tried * and found it didn't work, so either copied the directory or used ALL. |
|
|
|
|
|
|
#9 | |
|
Give up the ghost
Join Date: Apr 2001
Location: U$A
Age: 22
Posts: 4,662
|
Quote:
? matches any single character. # matches whatever follows it. #? matches anything/everything. |
|
|
|
|
|
|
#10 | |
|
Registered User
Join Date: Feb 2003
Location: Lancashire
Age: 38
Posts: 431
|
Quote:
Wasn't sure at first why you would use # without ? but it's for things like "copy #.info" and stuff isn't it ![]() |
|
|
|
|
|
|
#11 |
|
Registered User
Join Date: Jan 2002
Location: Germany
Posts: 3,901
|
No. "Matches whatever follows it" is not exact enough. # means "any number of the following character".
So e#gon matches eon, egon, eggon, egggggon and so on. #? is just a special case of the above. There are more fantastic features of the Amiga pattern matching: you can say (a|b) to hit everything with "a" or "b" at the specified place. So to copy a file with its icon and only these, you can say copy filename(|.info). And this one: ~(this) matches all files that don't have "this" in the specified location. delete ~(#?.(jpg|gif|png)) deletes all files that do not end in ".jpg" or ".gif" or ".png". |
|
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Loading AmigaDOS tracks without the system? | Photon | Coders. General | 20 | 18 June 2006 17:26 |
| Sorry for the daft question, but | sut | project.SPS (was CAPS) | 4 | 08 April 2005 14:12 |
| Kickstart ROM Question... | HCF | Retrogaming General Discussion | 16 | 24 December 2004 12:41 |
| Probably a really dumb question... | BumpyCarrot | New to Emulation or Amiga scene | 3 | 28 February 2003 02:04 |
| To have a file requester displayed under AmigaDOS | oldpx | support.Apps | 4 | 05 November 2002 01:01 |