Subject: | |
From: | |
Reply To: | Emerson, Tom # El Monte |
Date: | Wed, 6 Dec 2000 14:09:12 -0500 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
Since one of your "criteria" is that the "actual" file is in CAPS while the
"link" file is in lower case, you might be able to use
LISTFILE ../SYSCMD/[A-Z]@,6>*mklink
so you won't even pick up lower-case names in the first place.
[of course, you still get to shoot the first operator who creates
"./MyCommandName"]
> -----Original Message-----
> From: Donna Garverick [mailto:[log in to unmask]]
> in my quest to do away with udc's (yeah, i have no life and i
[...]
> - but now you've got the issue of capitalization. you may
[...]
> guarantees that for the long-named files, there's a symbolic
> link. the 'real'
> file name is in all caps, the link is all lowercase.
>
> parm entry=main
[...]
> listfile ../SYSCMD/,6>*mklink
[change to "../SYSCMD/[A-Z]@"...]
> elseif "!entry" = "process"
> while setvar(_ml_eof,_ml_eof-1) >= 0
[...]
> # does a down-shifted version exist?
> if finfo((_ml_dir+dwns(_ml_file)),"exists")
[you still need to test for this, however...]
> # is it a link file
> if finfo((_ml_dir+dwns(_ml_file)),"filetype") = "SYMLINK"
> echo The link file for !_ml_file already exists
> else
> echo The file type for the link file for
> !_ml_file is wrong
> endif
[this test may no longer be neccessary (or maybe it's the test I already
cut) -- you've already guaranteed you aren't "looking at" lowercase names to
begin with]
[...]
Tom
|
|
|