comand cp and mv

From: blackdog (cljlk_at_hotmail.com)
Date: 04/08/05

  • Next message: Barry Margolin: "Re: comand cp and mv"
    Date: 7 Apr 2005 17:23:52 -0700
    
    

    I have an application which is written in C. The application contains
    command cp to copy a file to another file name, then use
    command rm to delete the original file. Some people think that is
    better then using command mv in a C program to rename a file because
    the mv command dose not always work in a C program, it get hung
    sometime.
    Would anyone please explain why and why not?

    Thanks.


  • Next message: Barry Margolin: "Re: comand cp and mv"

    Relevant Pages

    • Re: Great SWT Program
      ... a good tutorial on Unix CLI tools? ... command there, ... then rename everything in the search scope with the CLI, ... I'd have to boot up a Windows system and try stuff, ...
      (comp.lang.java.programmer)
    • Re: How To Make index.shtml As A Home Page?
      ... is the correct command, but will only be effective if AllowOverride All ... overridden (provided AllowOverride is set) using .htaccess as you have done. ... > DirectoryIndex index.shtml index.html index.htm index.php ... you should be able to open your online web in FrontPage and rename ...
      (microsoft.public.frontpage.client)
    • Re: Cant Rename a File Using WinXP Command Prompt!!!
      ... It needs to be given a shorter name so that it can be ... I cannot rename it using the Command Prompt and the ... The old filename in question contains the following symbols as ...
      (microsoft.public.windowsxp.help_and_support)
    • =?UTF-8?Q?Re:_The_rename_command=E2=80=A6?=
      ... the command would be much more efficient if find was only ... *every* file gets passed to rename. ... the Swedish characters gets "distorted" anyway): ... understanding English in manuals etc). ...
      (Ubuntu)
    • Re: The rename =?windows-1252?Q?command=85?=
      ... From the very beginning of Linux the Windows users had to ... learn that rename is not part of the commands. ... When first starting to use computers, if we do not count the very first ... I accidently found that rename command, ...
      (Ubuntu)