Question: Is there a way to hide a cmd window in Clarion 8?

I run xcopy to copy files defined in fields an application so it looks something like this:

```
Run('Xcopy '&Clip(Loc:Pathfrom)&' '&loc:Pathto')

```

i.e. `Run(' C:\Temp\Temp.tps c:\Bakup\')`.

Maybe there is a cmd or Clarion command not to show the black window but only do the copying?

Answer: 
Perhaps using the [CreateProcess](https://msdn.microsoft.com/en-us/library/windows/desktop/ms682425(v=vs.85).aspx) API function with the `CREATE_NO_WINDOW` flag is another way to do this?

You should be able to locate some examples in Clarion code around the place. A good starting point is the `CreateProcessCaptureOutput` method of `CML_System_IO_CaptureStdOutput.clw` found in the ClarionMagLibrary:

<https://github.com/devroadmaps/ClarionMagLibrary/tree/master/libsrc>

Tweak that as needed?
Unless there is some reason that you prefer to use the command line copy/xcopy command, why not just use Clarion's built in Copy function to copy the file?