Tarig I said to use shellexecute not the run command
but for the run try this
RUN n/7 XCOPY D:\C2007\TABLES\*.DBF D:\C2007\TABLES\BACKUP /y /q
but the run command will still open an dos window even the windows being minimized and inactive, shellexecute has the option not to show the window.
>Dear Sir,
>
>BC25='D:\C2007\TABLES\BACKUP'
>CD 'D:\C2007\TABLES'
>RUN n/7 XCOPY *.DBF &bc25 /y /q
>CD..
>
>The above codes work fine outside exe.
>When I run it from exe, they do nothing.
>Also every time a DOS window appears, I do not want to show that.
>
>Please help
Alexandre Palma
Senior Application Architect