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