LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous (more recent) messageNext (less recent) messagePrevious (more recent) in topicNext (less recent) in topicPrevious (more recent) by same authorNext (less recent) by same authorPrevious page (April 1999, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Tue, 20 Apr 1999 11:27:28 -0400
Reply-To:     Clinton.Rickards@PHARMA.COM
Sender:       "SAS(r) Discussion" <SAS-L@UGA.CC.UGA.EDU>
From:         Clint Rickards <Clinton.Rickards@PHARMA.COM>
Subject:      Re: DOS path names
Comments: To: medisci@POWERNET.COM
Content-Type: text/plain; charset="iso-8859-1"

Very nice, John. I had forgotten about XCOPY's ability to do this.

Thanks...

Clint Rickards BCDM Purdue Pharma L.P. 100 Connecticut Avenue Norwalk, CT 06850-3590 (203) 854-7547

-----Original Message----- From: John Whittington [SMTP:medisci@POWERNET.COM] Sent: Tuesday, April 20, 1999 9:55 AM To: SAS-L@UGA.CC.UGA.EDU Subject: Re: DOS path names

At 12:20 20/04/99 +1200, Mark Bodt wrote:

>Looks like there is a difference across OSs which would mean creating the >directories and sub-directories one at a time, and then only creating them >if they don't exist. (you could use the fileexist() function for this)

There appears to be a viable 'workaround' in Win95 ....

As we have all learned over the past few days, whilst the command:

md "john whittington"

... will work under Win95, the following (which I gather works under NT) ...

md "john whittington\my subdirectory"

... does NOT work under Win95. As Mark says, one would therefore have to create a 'long name' pilepath 'step by step' under Win95, including checks for pre-existing directories/subdirectories.

However, what DOES seem to work under Win95 is ....

xcopy file "c:\john whittington\my subdirectory\yet another one"

... the result being the creation of the full desired filepath, with 'long names'. A further advantage of this method is that there is no problem if the filepath, or part of it, already exists.

Hence, if one is prepared to copy some sort of file (which could be a 'dummy' one made for the purpose) into the newly created directory/tree, it seemingly *can* be done with Win95 (and I presume also Win98).

... just a little discovery, that folk might wish to play with!

Regards,

John

---------------------------------------------------------------- Dr John Whittington, Voice: +44 (0) 1296 730225 Mediscience Services Fax: +44 (0) 1296 738893 Twyford Manor, Twyford, E-mail: medisci@powernet.com Buckingham MK18 4EL, UK mediscience@compuserve.com ----------------------------------------------------------------


Back to: Top of message | Previous page | Main SAS-L page