Date: Wed, 12 Sep 2007 17:45:58 -0400
Reply-To: Mike Rhoads <RHOADSM1@WESTAT.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Mike Rhoads <RHOADSM1@WESTAT.COM>
Subject: Re: Use Windows Explorer "selected files" as input to SAS program.
In-Reply-To: <7367b4e20709121435y310384a1p7945881f057ef135@mail.gmail.com>
Content-Type: text/plain; charset="us-ascii"
You might try putting a larger number in the sample, and see if it
works. ;-)
The Microsoft documentation for GetOpenFileName is below (in part). I'm
not sure of the difference between GetOpenFileName and GetOpenFileNameA
...
"Note, when selecting multiple files, the total character limit for the
file names depends on the operating system and the version of the
function.
Windows 95/98/Me: (only ANSI is supported) no restriction
Microsoft Windows NT4 and earlier: 32k limit
Windows 2000/XP: (ANSI) 32k limit, (Unicode) no restriction "
Good luck! (Or you could go with Richard's other solution.)
Mike
-----Original Message-----
From: owner-sas-l@listserv.uga.edu [mailto:owner-sas-l@listserv.uga.edu]
On Behalf Of data _null_,
Sent: Wednesday, September 12, 2007 5:35 PM
To: Mike Rhoads
Cc: SAS-L List
Subject: Re: Use Windows Explorer "selected files" as input to SAS
program.
This does seem promising but I see a suspicious looking 2048 in the
program the same as the VB Script limit imposes
On 9/12/07, Mike Rhoads <RHOADSM1@westat.com> wrote:
> My two rules for this type of question:
>
> 1. Think about using the SAS interface to the WinAPI routines.
> 2. Check Richard DeVenezia's excellent web site to see whether he has
a
> sample that may be exactly what you want.
>
> I think you are in luck. Check out the sample for GetOpenFileNameA at
> http://www.devenezia.com/downloads/sas/sascbtbl/
>
> Mike Rhoads
> Westat
> RhoadsM1@Westat.com
>
> -----Original Message-----
> From: owner-sas-l@listserv.uga.edu
[mailto:owner-sas-l@listserv.uga.edu]
> On Behalf Of data _null_,
> Sent: Wednesday, September 12, 2007 3:51 PM
> To: SAS-L List
> Subject: Use Windows Explorer "selected files" as input to SAS
program.
>
>
> I want to "select" some files in the Windows Explorer and "somehow"
> start a SAS program that uses the "selected" file names as input.
>
> Sort of like FILENAME PIPE on a DIR command but just the "selected"
> files.
>
> I will create using SAS, I guess, some kind of hyperlinked document
> using the content of the "selected" files.
>
> I don't know if having the starting point the WinEXP or if some other
> FILELIST interface is better.
>