xcopy

Passing Cmd Command to C# Application

I have a program that accepts a Cmd command as a command argument. Basically you call it this way: C:\MyProgram.exe del C:\test.txt The above command works fine. However when I try to do an xcopy command it fails: C:\MyProgram.exe xcopy C:\test.txt C:\Temp\Test2.txt The code of the program: class Program { static void Main(str...

Hide Command Window in C# Application

Before you say its a duplicate question, please let me explain (as I've read all similar threads). My application has both of these settings: procStartInfo.CreateNoWindow = true; procStartInfo.WindowStyle = ProcessWindowStyle.Hidden; and is also has WindowsApplication as the output type. The black window STILL comes up when I ...

Batch (xcopy all files to folder) with loop

hello, can anyone help me with loop in batch for windows? i want make script that will allow me to do something like this: 1. copy all folders and files from Drive I: to X:\folder0001; 2. when done display: "Done"; (i ejected cd) 3. "enter" to next copy; 1. copy all folders and files from Drive I: to X:\folder0002; 2. when done display...

powershell : xcopy directory template acl to a new folder

I'm trying to do an xcopy /o equivalent to copy a template folder with subdirectories which contain their own appropriate acl to create a new target directory with the same subdirectories and their respective acl in a windows 2008 server environment. for example.. the template directory would be templatedir - sql - pm - dev tar...