Results 1 to 5 of 5

Thread: Bat file Help Please

  1. #1

    Thread Starter
    Member
    Join Date
    Jan 2013
    Posts
    42

    Bat file Help Please

    I have in folder that have pictures, in I'm trying to make in batch file that will move all the picture from one folder to another folder.
    Can someplease help?
    Thanks

  2. #2
    Code Monkey wild_bill's Avatar
    Join Date
    Mar 2005
    Location
    Montana
    Posts
    2,993

    Re: Bat file Help Please

    Like this?
    Code:
    copy "C:\temp\*.jpg" "C:\temp1\"
    That is the very essence of human beings and our very unique capability to perform complex reasoning and actually use our perception to further our understanding of things. We like to solve problems. -Kleinma

    Does your code in post #46 look like my code in #45? No, it doesn't. Therefore, wrong is how it looks. - jmcilhinney

  3. #3
    Default Member Bonnie West's Avatar
    Join Date
    Jun 2012
    Location
    InIDE
    Posts
    4,060

    Re: Bat file Help Please

    Code:
    C:\>MOVE /?
    Moves files and renames files and directories.
    
    To move one or more files:
    MOVE [/Y | /-Y] [drive:][path]filename1[,...] destination
    
    To rename a directory:
    MOVE [/Y | /-Y] [drive:][path]dirname1 dirname2
    
      [drive:][path]filename1 Specifies the location and name of the file
                              or files you want to move.
      destination             Specifies the new location of the file. Destination
                              can consist of a drive letter and colon, a
                              directory name, or a combination. If you are moving
                              only one file, you can also include a filename if
                              you want to rename the file when you move it.
      [drive:][path]dirname1  Specifies the directory you want to rename.
      dirname2                Specifies the new name of the directory.
    
      /Y                      Suppresses prompting to confirm you want to
                              overwrite an existing destination file.
      /-Y                     Causes prompting to confirm you want to overwrite
                              an existing destination file.
    
    The switch /Y may be present in the COPYCMD environment variable.
    This may be overridden with /-Y on the command line.  Default is
    to prompt on overwrites unless MOVE command is being executed from
    within a batch script.
    Code:
    MOVE "C:\My Pictures\*.bmp", "C:\My Pictures\*.gif", "C:\My Pictures\*.jpg" "D:\New Folder"
    On Local Error Resume Next: If Not Empty Is Nothing Then Do While Null: ReDim i(True To False) As Currency: Loop: Else Debug.Assert CCur(CLng(CInt(CBool(False Imp True Xor False Eqv True)))): Stop: On Local Error GoTo 0
    Declare Sub CrashVB Lib "msvbvm60" (Optional DontPassMe As Any)

  4. #4
    Code Monkey wild_bill's Avatar
    Join Date
    Mar 2005
    Location
    Montana
    Posts
    2,993

    Re: Bat file Help Please

    Nice correction Bonnie, I have not &HADC0FFEE yet this morning
    That is the very essence of human beings and our very unique capability to perform complex reasoning and actually use our perception to further our understanding of things. We like to solve problems. -Kleinma

    Does your code in post #46 look like my code in #45? No, it doesn't. Therefore, wrong is how it looks. - jmcilhinney

  5. #5
    Default Member Bonnie West's Avatar
    Join Date
    Jun 2012
    Location
    InIDE
    Posts
    4,060

    Re: Bat file Help Please

    Actually, I didn't see your post before I posted mine! (could be because I went Advanced)
    On Local Error Resume Next: If Not Empty Is Nothing Then Do While Null: ReDim i(True To False) As Currency: Loop: Else Debug.Assert CCur(CLng(CInt(CBool(False Imp True Xor False Eqv True)))): Stop: On Local Error GoTo 0
    Declare Sub CrashVB Lib "msvbvm60" (Optional DontPassMe As Any)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width