Path: utzoo!attcan!uunet!nuchat!sugar!peter From: peter@sugar.UUCP (Peter da Silva) Newsgroups: comp.sys.amiga Subject: Re: Bug in ARP Rename command Message-ID: <1993@sugar.UUCP> Date: 15 May 88 02:55:50 GMT References: <3579@ece-csc.UUCP> Organization: Sugar Land UNIX - Houston, TX Lines: 16 In article <3579@ece-csc.UUCP>, rss@ece-csc.UUCP writes: > gives you the error message "Can't rename fubar as //fubar", which seems > like a strong hint that "rename" is trying to add an inappropriate "/" > character before invoking the system (DOS) Rename() function (or whatever > the appropriate system call is.) I ran into this problem in Browser. In the published version I wrote a fairly complex routine to figure out when to add the slash. In the current working version I "CurrentDir(destdir)" and do a "Rename(sourcefile, filename)" for the case where the destination is a directory. To get the filename the best way (because it gives you the real case) is to Examine it and pull the fib_FileName out. -- -- Peter da Silva `-_-' ...!hoptoad!academ!uhnix1!sugar!peter -- "Have you hugged your U wolf today?" ...!bellcore!tness1!sugar!peter -- Disclaimer: These may be the official opinions of Hackercorp.