Results 1 to 5 of 5

Thread: Batch File

  1. #1
    Senior Member
    Join Date
    Dec 2003
    Location
    Herts
    Posts
    293
    Thanks
    1
    Thanked
    0 times in 0 posts

    Batch File

    i not sure i'm in the right forum but if someone could help it would be appreciated.

    someone asked me the other day if i could write a batch file that to copy all the files from 2 directories onto a floppy for them but i had no idea! can anyone either show me or explain to me how i would go about this?

    its a long story so please don't ask why,

    thanks for any help!

  2. #2
    HEXUS.social member Allen's Avatar
    Join Date
    Nov 2003
    Location
    Brighton
    Posts
    8,536
    Thanks
    363
    Thanked
    262 times in 168 posts
    • Allen's system
      • Motherboard:
      • ASUS Maximus VIII Gene
      • CPU:
      • Intel Core i5 6600K
      • Memory:
      • 2 x 8GB Kingston HyperX Predator DDR4-3000
      • Storage:
      • 256GB Samsung 950 PRO NVMe M.2 (OS) + 2 x 512GB Samsung 960 EVO in RAID 0 (Games)
      • Graphics card(s):
      • ASUS ROG Strix GeForce GTX 1080 Ti OC
      • PSU:
      • XFX P1-650X-NLG9 XXX 650W Modular
      • Case:
      • Fractal Design Node 804
      • Operating System:
      • Windows 10 Home 64-bit
      • Monitor(s):
      • 27" BenQ XL2730Z + 23" Dell U2311H
      • Internet:
      • Virgin Media 200Mbps
    Open notepad or something similar and type in the following 2 lines:

    copy c:\folder1\*.* a:\*.*
    copy c:\folder2\*.* a:\*.*

    and save the file calling it whatever.bat. If it adds a .txt then rename the file in explorer to .bat.

    Obviously you have to rename the directory to whatever it needs to be!

  3. #3
    Senior Member
    Join Date
    Dec 2003
    Location
    Herts
    Posts
    293
    Thanks
    1
    Thanked
    0 times in 0 posts
    i can write the batch file but cannot seem to be able to get it to list what is in the batch file i.e.: finance, documents all it says is that it contains 1 file and i need it to contain both the files so i can access them.

    how can i do that? please

  4. #4
    HEXUS.social member Allen's Avatar
    Join Date
    Nov 2003
    Location
    Brighton
    Posts
    8,536
    Thanks
    363
    Thanked
    262 times in 168 posts
    • Allen's system
      • Motherboard:
      • ASUS Maximus VIII Gene
      • CPU:
      • Intel Core i5 6600K
      • Memory:
      • 2 x 8GB Kingston HyperX Predator DDR4-3000
      • Storage:
      • 256GB Samsung 950 PRO NVMe M.2 (OS) + 2 x 512GB Samsung 960 EVO in RAID 0 (Games)
      • Graphics card(s):
      • ASUS ROG Strix GeForce GTX 1080 Ti OC
      • PSU:
      • XFX P1-650X-NLG9 XXX 650W Modular
      • Case:
      • Fractal Design Node 804
      • Operating System:
      • Windows 10 Home 64-bit
      • Monitor(s):
      • 27" BenQ XL2730Z + 23" Dell U2311H
      • Internet:
      • Virgin Media 200Mbps
    Erm, unless I missing something, the batch file won't actually contain the docs, it copies the docs to the floopy drive.

    I'm afraid if that's not the answer then I don't understand your question...

  5. #5
    Senior Member
    Join Date
    Dec 2003
    Location
    Herts
    Posts
    293
    Thanks
    1
    Thanked
    0 times in 0 posts
    it mite be me then

    i must not be writing it correctly then, i need to write a batch file to copy 2 files to a floppy so that you can access the 2 files on the floppy, they are both text files.

    when i try to do it i find that on the floppy there is only a .bat file and not the 2 text files

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. file eating monster: virus, XP or hard drive
    By justravis in forum PC Hardware and Components
    Replies: 16
    Last Post: 26-02-2009, 02:58 AM
  2. Replies: 0
    Last Post: 07-11-2003, 01:09 AM
  3. windows 2000, corrupt file... help!
    By streetster in forum Software
    Replies: 4
    Last Post: 05-11-2003, 09:21 AM
  4. Manage downloaded webpages file and folder
    By Zathras in forum Software
    Replies: 0
    Last Post: 17-09-2003, 05:37 PM
  5. Replies: 0
    Last Post: 20-08-2003, 11:42 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
  •