Results 1 to 5 of 5

Thread: Batch file & copy query

  1. #1
    Senior Member
    Join Date
    Feb 2004
    Location
    Banbury, UK
    Posts
    451
    Thanks
    0
    Thanked
    0 times in 0 posts

    Batch file & copy query

    Without all the reasoning behind it, what I am needing to do is to create a batch file to copy an outlook.pst file from my C drive to the D drive (where there is another instance of windows installed).

    I know the location both the files in question are in, and I can drag and drop in windows to accomplish the task, but ideally I would like to be able to creat a batch file on startup to do this for me.

    I've created the .bat file in the command prompt, and it reads something like this:

    copy c:\location_of_file d:\location_of_file /d /y

    When I try and execute the batch file, it comes up with a message stating that the system cannot find the file specified.

    Firstly, have I put this command in correctly?
    Secondly, if not, could you guys point me in the right direction?

    Thanks again.
    Last edited by Fatboy; 25-04-2005 at 10:49 AM.
    Sex, breakfast of champions

    Abit AV8 3rd Eye
    Athlon 64 3500+ @ 2.24GHz
    2048Mb Corsair XMS3200
    74Gb Western Digital 10000rpm Raptor
    200Gb Western Digital SATA
    Hiper Type-R 580W Modular PSU
    7900 GS+

  2. #2
    System Suspect
    Join Date
    Aug 2004
    Location
    Kingston Upon Thames
    Posts
    427
    Thanks
    0
    Thanked
    0 times in 0 posts
    Did you remeber to add in your quotation marks? Example here..If it has a space it only looks for the bit before the space

    copy c:\winat.exe "C:\Documents and Settings\oijh"

  3. #3
    Oh no!I've re-dorkalated! Jiff Lemon's Avatar
    Join Date
    Jul 2003
    Location
    Sunny MK
    Posts
    2,504
    Thanks
    80
    Thanked
    44 times in 41 posts
    also make sure outlook hasn't got the pst open

  4. #4
    Senior Member
    Join Date
    Feb 2004
    Location
    Banbury, UK
    Posts
    451
    Thanks
    0
    Thanked
    0 times in 0 posts
    Quote Originally Posted by Olly1234
    Did you remeber to add in your quotation marks? Example here..If it has a space it only looks for the bit before the space

    copy c:\winat.exe "C:\Documents and Settings\oijh"
    Doh! Yes, I'm forgotten the quotation marks. Sorted now, cheers very much.
    Sex, breakfast of champions

    Abit AV8 3rd Eye
    Athlon 64 3500+ @ 2.24GHz
    2048Mb Corsair XMS3200
    74Gb Western Digital 10000rpm Raptor
    200Gb Western Digital SATA
    Hiper Type-R 580W Modular PSU
    7900 GS+

  5. #5
    www.evilmunky.com EvilMunky's Avatar
    Join Date
    Jul 2004
    Location
    www.evilmunky.com
    Posts
    1,396
    Thanks
    10
    Thanked
    6 times in 5 posts
    bah got there before i could

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 63
    Last Post: 14-11-2011, 09:17 AM
  2. Nero vision express saying:'Burn process failed'
    By johnnr892 in forum Help! Quick Relief From Tech Headaches
    Replies: 15
    Last Post: 11-12-2005, 11:43 PM
  3. Nero or Burner ?
    By Foxile in forum Help! Quick Relief From Tech Headaches
    Replies: 30
    Last Post: 04-04-2005, 07:31 AM
  4. Dos Batch File Help
    By EvilMunky in forum Help! Quick Relief From Tech Headaches
    Replies: 4
    Last Post: 08-03-2005, 12:15 PM
  5. How do you backup?
    By Howard in forum PC Hardware and Components
    Replies: 48
    Last Post: 05-01-2005, 09:05 AM

Posting Permissions

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