Joe Strazzere - All Things Quality

Visit my new blog at http://strazzere.blogspot.com/


December 1, 2005 - WinTask - PathMatchSpec

Posted in WinTask

'
' PathMatchSpec - Searches a string using a Microsoft MS-DOS wild card match type.
'

' Author: Joe Strazzere

'

File$="c:\joetest.txt"

'Spec$="*.txt"
'Spec$="*.*"
Spec$="*.doc"

 

ret=External("shlwapi.dll","PathMatchSpecA",File$,Spec$)

If ret = 0 then
    MsgBox(File$+" is not matched by "+Spec$)
Else
    MsgBox(File$+" is matched by "+Spec$)
EndIf


<- Last Page :: Next Page ->

About Me

A gathering place for information and ideas about Quality Assurance, Testing, and other useful topics.

Problems cannot be solved by the same level of thinking that created them. - A. Einstein

Search This Site

Translate This Site

RSS Feed

Subscribe

Twitter

@jstrazzere

Categories

Life
QA
Sports
Tools
WinTask
Work in General

What I'm Reading Now