LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (October 2003, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Wed, 22 Oct 2003 05:01:45 +0300
Reply-To:     Arto Raiskio <arto@RAISKIO.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Arto Raiskio <arto@RAISKIO.COM>
Subject:      Re: working with changing foldername in IE

"David L. Cassell" wrote > Unfortunately, the folders will *always* keep changing names. You're > stuck with that. It's designed that way. > The best you can do from within SAS is to grab all four directory names, > then walk through each to see if any of them have the target[1].jsp > file.

so what you're saying is to simply use something like

note that if I change the 3rd line to rc=filename("XL", "C:\Windows"); this works fine, but does not work for system folder such as the IE temp files (mine is actually in e:\tmp\temporary internet files\)

data _null_; length list $ 1000; rc=filename("XL", "E:\Tmp\Temporary Internet Files\b");

dirid=dopen("XL"); dcnt=dnum(dirid);

if dcnt>0 then do i=1 to dcnt; rd=dread(dirid, i); if index(rd, ".") then do; if list=" " then list=rd || " * "; else list=compbl(list) || trim(left(rd)) || " * " ; end; end; call symput("XL", list);

rc=dclose(dirid); run;

%put &xl.;


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