Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Upercase folder problem
Message
From
11/11/2007 05:05:36
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01268333
Message ID:
01268336
Views:
14
This message has been marked as a message which has helped to the initial question of the thread.
>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform