What is the proper procedure that would be used to have a command button do
something like:

comment - file copy in process
y:\
MD test
c:
CD\temp
COPY *.* y:\test
comment - file copy complete

Dan

Re: execute pc code from a command button by Dan

Dan
Thu Feb 10 13:28:59 CST 2005

* file copy in process
lcStart = sys(5)+curdir()
cd y:\
MD test
* not sure what you want here. Is \temp on y: or the current drive
CD \TEMP
COPY FILE *.* TO y:\test
CD (lcStart) && back to where we started
* file copy complete

Technically though, all that CD stuff isn't necessary if you use a full path
in the MD and the COPY FILE.

Dan

Dan Williams wrote:
> What is the proper procedure that would be used to have a command
> button do something like:
>
> comment - file copy in process
> y:\
> MD test
> c:
> CD\temp
> COPY *.* y:\test
> comment - file copy complete
>
> Dan



Re: execute pc code from a command button by christophe

christophe
Fri Feb 11 02:35:44 CST 2005

Dan,

Wait Window NoWait "wait ..."
Copy File yourpath\*.* To y\test\*.*
Wait Window NoWait "Done."

regards
christophe

"Dan Williams" <dan@willcraft.com> schreef in bericht
news:110n5j4dhpcvee5@news.supernews.com...
> What is the proper procedure that would be used to have a command button
do
> something like:
>
> comment - file copy in process
> y:\
> MD test
> c:
> CD\temp
> COPY *.* y:\test
> comment - file copy complete
>
> Dan
>
>