>Hi all,
>
>I want launch a vbs script from Vfp
>
> loUpdate.RunUpdateExe("WSCRIPT " + cDir + "codeupdate.vbs" )
>
>
>But i can't know the exact Uppercase Of cDir.
>It can be 'c:\Amline' or 'c:\amline' or 'c:\AMLINE'
>But i have already a error if the Name is not exact !
>What can i do for this problem ?
>
>bernhart
Bernhart, I am not sure the answer but (a) should'nt cDir include a back slash at the end, and (b) what if you enclose the path and vbs script name inside single quotes as in;
cDir = 'c:\Amline\'
loUpdate.RunUpdateExe("WSCRIPT '" + cDir + "codeupdate.vbs' " )
In the End, we will remember not the words of our enemies, but the silence of our friends - Martin Luther King, Jr.