[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference hydra::amiga_v1

Title:AMIGA NOTES
Notice:Join us in the *NEW* conference - HYDRA::AMIGA_V2
Moderator:HYDRA::MOORE
Created:Sat Apr 26 1986
Last Modified:Wed Feb 05 1992
Last Successful Update:Fri Jun 06 1997
Number of topics:5378
Total number of notes:38326

200.0. "CLI Questions" by HYSTER::DEARBORN (Trouvez Mieux) Thu Dec 04 1986 08:52

    Here's one I haven't figured out yet:
    
    Using workbench, you can create a file name with spaces in it
    
    i.e.  Hi-Res Drawing of Computer.pic 
         
    So far, so good.
         
    Now we come to CLI.  How can I manipulate this file name using CLI?
    It doesn't handle spaces in filenames, it treats them like syntax  
    errors.  If there is no icon connected with it, I can't do anything
    with it on Workbench either.
         
    I'm sure the answer to this is real easy.  I just haven't figured
    it out yet.                                 
         
    Randy             
T.RTitleUserPersonal
Name
DateLines
200.1Don't quote me quote itCYGNUS::DEBRUYNTony - my AMIGA DOS it all for meThu Dec 04 1986 09:3723
    I am a new AMIGAn so someone please correct me if I am wrong.
    
    To handle file specs with any "funny" characters in them (such as
    spaces) put the entire file spec in quotes.  This means that a name
    such as
    
        DF1:TEST PROG 1 
    
    would be used in a CLI command like this
    
       COPY "DF1:TEST PROG 1" TO PRT:
    
    I believe that it is necessary to put the ENTIRE file spec in quotes
    not just the file name.
    
    A note on my own learning experience.  I made the mistake of us
    using a special character in a file name.  The problem was that
    I tried to include a "/".  That hung the whole system, trying to
    access a subdirectory that didn't exist.  Unfortunately, I only
    figured out what was going on after the system hung.  Too bad i
    had not yet installed the "I didn't mean it" menu option.
    
   
200.2JOKE::ACCIARDIThu Dec 04 1986 10:247
    You can even specify a directory or volume name with spaces in it
    if you enclose the name in quotes; for example....
    
    	Dir "THIS IS BULLSHIT:"
    
    	Dir "THIS IS BULLSHIT:"OH, REALLY"/"YES REALLY"
      
200.3Try thisPOMPEO::ZABOTMarco Zabot-Adv.Tech.mgr-Turin ACTFri Dec 05 1986 09:2521
    Be aware. Some products ( e.g. SUPERBASE ) when asking for disk
    name where to store files DO NOT want disk name in quotes EVEN if
    there are spaces in it. This is true if you're giving the disk name
    only ( e.g.  MY WORK DISK: ). Otherwise you're right. 
    Amiga DOS manual pag. 6. 
    .. However, if you use these special characters, you must enclose
    the entire file name with double quotes....
    Special caracters are:
    ... any printing character exept slash (/) and colon (:)
    Consequently di example in 202.2 should be :
    Dir "THIS IS BULLSHIT:OH, REALLY/YES REALLY"    (???)
    or if you really looking for trouble you can name a file
    
    THIS "FILE" HAS QUOTES
    
    then you can recall it with
    
    "...../THIS *"FILE*" HAS QUOTES"
    
    But believe me, I've never tried it ( YET).
    marco
200.4Got me againTRUMAN::LEIMBERGERBill LeimbergerSat Dec 06 1986 03:3217
    I  uploaded a program from the Vax using Dave Weckers vt100 for
    the first time and ran into this problem . The file came across
    fine but it had ;2 on the end of the name .I could see it when I
    ran a directory but could not edit,type,print or do anything else to
    it. The error 205 kept coming up .the Amiga-dos manual tells you
    that you'v spelt the name wrong when you entered the command line.
    It took awhile before I caught on as to what was happening,at that
    time I promptly did a
    RENAME "filename.ext;n" to filename.ext .
    Another gotya for the Amiga, but this is a lesson well learned.
    WATCH THOSE NAMES !
    OH! When I downloaded startup-sequence to the Vax it truncated the
    filename but allowed the file to be accessed .(I knew this)
    So the lesson might well have been pay attention to your systems
    fundamental conventions.
    
    bill 
200.5Workbench windowJGO::BRUGMANFri Mar 10 1989 14:404
    You must type rename into the Workbench Window .
    Then you must your really name type and press return.
    Joris Geutjes Netherlands