run command
- From: cj <cj@xxxxxxxxxxxxx>
- Date: Thu, 08 Mar 2007 11:54:30 -0500
This command works fine from the dos prompt
copy "c:\test\headerfile.txt" + "c:\test\from dir\cj.txt" "c:\test\from dir\to dir\cj.txt"
Why doesn't this work in VFP 8?
dimension inbarray[2]
inbarray[1]="cj.txt"
inbarray[2]="cj2.txt"
mfname='"c:\test\from dir\'+inbarray[i,1]+'"'
mtargname='"c:\test\from dir\to dir\'+inbarray[i,1]+'"'
mcmd='copy "c:\test\headerfile.txt" + ' + mfname + ' ' + mtargname
MESSAGEBOX(mcmd)
run &mcmd
The dos screen goes so quick I can't see what it says if anything. So, I then tried this.
mcmd ='pause'
run &mcmd
It works. Dos window opens with
C:\test>pause
Press any key to continue . . .
.
- Follow-Ups:
- Re: run command
- From: Jan Bucek
- Re: run command
- Prev by Date: Re: quickly get new lines in REMOTE SQL VIEW
- Next by Date: Re: run command
- Previous by thread: Re: server program
- Next by thread: Re: run command
- Index(es):
Relevant Pages
|