Running BAT file via ShellExecute
- From: "Brian McKillop" <brian.nospamforme@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 09 Aug 2006 06:29:53 GMT
I kick off a BAT file from within my VFP7 app with something like this...
lcPath = "C:\MyPath"
lcFile = "MyFile.BAT"
CD (lcPath)
ShellExecute( 0, "open", lcFile, "", "", 2 )
All works OK.
However, if lcPath has a value of [\\MyPC\c\MyPath] the ShellExecute doesn't
seem to work.
SYS(5) + SYS(2003) return the expected value of [\\MyPC\c\MyPath] at that
point.
FILE(lcPath + "\" + lcFile) returns .t.
Any ideas?
Brian
.
- Follow-Ups:
- Re: Running BAT file via ShellExecute
- From: Andrew Howell
- Re: Running BAT file via ShellExecute
- Prev by Date: Re: Update Views problem
- Next by Date: Re: Serial Cash register drawer
- Previous by thread: Serial Cash register drawer
- Next by thread: Re: Running BAT file via ShellExecute
- Index(es):