Re: xcopy in C Programming Software Development by Ancient Dragon xcopy is an old old MS-DOS command, not implemented on … XCOPY Alternative in UNIX Programming Software Development by Shane_Warne … in UNIX that is similar in functionality to XCOPY in Windows? XCOPY can copy who directory trees from a source…bash command did that as well. Here is the XCOPY functional [URL="http://www.microsoft.com/resources/documentation…/windows/xp/all/proddocs/en-us/xcopy.mspx?mfr=true"]specs [/URL]for further reference… Re: XCOPY Alternative in UNIX Programming Software Development by Shane_Warne …. Say for example all the .h files and .c files. XCOPY can do this by using the /S switch. [code]SomeFolder… | +--Source | +--Dest[/code] if you type [code]XCOPY /S *.h ..\dest [/code] it will recursively copy the .h… Re: XCOPY Alternative in UNIX Programming Software Development by davidchengnoc Just very simple question: what is the unix equivalent of the following command xcopy s: d:/s/d where s: source drive and d: destination drive, /s - subdirectories, /d - replace with newer date/time This commands serves well as incremental backup which saves time and effort in DOS/Windows Era. XCOPY not working in VB.Net windows service.. Plz Help Programming Software Development by r.kadiresan I am trying to run [B]XCOPY[/B] to copy files from one directory in a server … fine. But if i put it in windows service the XCOPY is not working... Here is my code Plz. give me… Xcopy got access denied error even full control rights Hardware and Software Microsoft Windows by tembel … problem on Windows 8 is: My script executes this command: xcopy "D:\X" "D:\E" /S /E… /I /Q /H /K /O /X xcopy is Windows's copy command. "D:\X" is… xcopy in C Programming Software Development by necrovore … its files to another location. I have figured out that xcopy comes in handy for what i want to do.but…;\\*"); strcpy(dest,"c:\\YeSQLBackUp"); strcpy(command,"xcopy "); strcat(command,src); strcat(command," "); strcat(command… Re: xcopy in C Programming Software Development by deceptikon It's a little sneaky, but you could pipe an answer to xcopy. It doesn't suppress the prompt, but it does execute it automatically: echo F | xcopy /s /i /q /y src dst Re: xcopy in C Programming Software Development by Adak Actually, it's in Windows 7. Open a command window and type xcopy /? for all the info on it. Obviously, naming the files you want to move, and where you want to move them to, is critical. That being said, I believe you'll enjoy programming it in C, instead, and learn something new in the process. Re: xcopy in C Programming Software Development by necrovore … run the same function again, i get a prompt from xcopy asking me if i want to rewrite. I want to… Re: Batch file using xcopy Hardware and Software Microsoft Windows by Salem … files and directory trees. NOTE: Xcopy is now deprecated, please use Robocopy. XCOPY source [destination] [/A | /M] [/D[:date]] [/P] [/S [/E… files that already exist in destination. /K Copies attributes. Normal Xcopy will reset read-only attributes. /N Copies using the generated… Using XCOPY dos command in VB.NET Programming Software Development by compulove … of a folder into another folder in another drive using XCOPY. Here is code I have now but it isn't… working and I figure xcopy would be the easier way to go because MOVETO and… Re: Using XCOPY dos command in VB.NET Programming Software Development by compulove ….RedirectStandardOutput = True p.StartInfo.RedirectStandardInput = True p.StartInfo.FileName = "xcopy.exe" p.StartInfo.UseShellExecute = False p.StartInfo.RedirectStandardError = True… Batch file using xcopy Hardware and Software Microsoft Windows by Lightninghawk Can anyone here assist using the xcopy command. I want to use it in a batch file to copy folder1 and all its subfolders and files to C:\folder1 thanks in advance Re: Batch file using xcopy Hardware and Software Microsoft Windows by Lightninghawk [CODE] @echo off Brown-Johnston.kmz xcopy "Brown-Johnston2" /e "c:\Brown-Johnston2\" exit [/CODE] This works Dos Script for Windows 7 XCopy Hardware and Software Microsoft Windows by kes166 … file into the documents folder of the users profile. [CODE]xcopy /y /d "\\networkaddress\tablet config.exe" "c… Re: XCOPY Alternative in UNIX Programming Software Development by John A Obviously you haven't looked very carefully at the man page. Copying directory trees (recursive mode): cp -r Copying directory trees, viewing all files copied (verbose mode): cp -rv You can string any of the cp options together, like that. [url]http://linux.about.com/od/commands/l/blcmdl1_cp.htm[/url] Re: XCOPY Alternative in UNIX Programming Software Development by John A [QUOTE][CODE]$ cp -R *.h ../temp cp: cannot stat `*.h': No such file or directory[/CODE][/QUOTE] You need a path. You can't just put "*.h". You need either to use working directories, or the full path: cp -r somefolder/*.h ../someotherfolder Re: XCOPY Alternative in UNIX Programming Software Development by Shane_Warne I am afraid that doesn't work. Only the files in the somefolder is copied to the destination. Recursive seraching is not done. Can you please try the above command and see if my observation is correct. Create a folder like this. [code]├─dest └─source │--test1.h │ └─child └─test2.h[/code] The above command [code] cp -r … Re: XCOPY Alternative in UNIX Programming Software Development by Infarction The reason cp -r source/*.h is not working is because you've only told it to look at .h files. For that reason, it doesn't copy the child directory (since it's not a .h file itself), much less its contents (though [I]they[/I] may be .h files). Re: XCOPY Alternative in UNIX Programming Software Development by Shane_Warne So how do I tell to look for .h files in child folders as well? I want to copy them so that the directory structure is the same as the source directory structure. I hope you understand what I am trying to do here. I only want the shell command please. I have looked the documentation of cp and tried all combinations. So if you know the exact answer … Re: XCOPY Alternative in UNIX Programming Software Development by jim mcnamara [code] #!/bin/bash # we want to copy from path1 to path2 # step 1 make all the subdirectories find /path1 -type d | \ while read dir do mkdir /path2"${dir#/path1}" done # step 2 cp the files find /path1 -type f | \ while read $file do cp "$file" /path2"${file#/path1}" done [/code] Re: XCOPY Alternative in UNIX Programming Software Development by sut [code]tar -cvf - $(find . -name "*.h") | (cd ../dest ; tar -xvf -)[/code] Re: XCOPY Alternative in UNIX Programming Software Development by bianxi find . -name "*.h" -print0 | cpio --null -pvd new-dir Re: Xcopy got access denied error even full control rights Hardware and Software Microsoft Windows by gerbil . Re: xcopy in C Programming Software Development by Ancient Dragon Yea, you are right. When I tried it I mis-read the error message, thinking it said "command not found". That's what I get for not reading more carefully. Re: xcopy in C Programming Software Development by necrovore thank you deceptikon, did not know that was even possible. Thanks a lot. but i got it workinng without echo. strcat(command," /s /i /q /y"); worked. It was my negligence not to have checked it properly before posting it here. Sorry, if this was an inconvinience. Re: Using XCOPY dos command in VB.NET Programming Software Development by GeekByChoiCe why so complicated? Try this: [CODE=vb] Dim DestinationDirectory As String = "I:\New\Export\ID" Dim SourceDirectory As String = "C:\Temp2\" Dim overwrite As boolean = true my.Computer.FileSystem.CopyDirectory(SourceDirectory,DestinationDirectory,overwrite) [/CODE] Re: Using XCOPY dos command in VB.NET Programming Software Development by compulove [QUOTE=GeekByChoiCe;1710161]why so complicated? Try this: [CODE=vb] Dim DestinationDirectory As String = "I:\New\Export\ID" Dim SourceDirectory As String = "C:\Temp2\" Dim overwrite As boolean = true my.Computer.FileSystem.CopyDirectory(SourceDirectory,DestinationDirectory,overwrite) [/CODE][/QUOTE] Thank you! This … Re: Using XCOPY dos command in VB.NET Programming Software Development by GeekByChoiCe The question is: does this directory "I:\New\Export\ID" already exist? [CODE=vb] If Not IO.Directory.Exists(DestinationDirectory) Then IO.Directory.CreateDirectory(DestinationDirectory) End If [/CODE]