Results 1 to 3 of 3

Thread: writing batch files

  1. #1
    Join Date
    Nov 2005


    [B][COLOR=blue] Can anyone tell what im doing wrong? Here is example of the batch file I created:
    @echo off
    copy C:\program files D:\documents and settings\bigboss inc\desktop\backup
    @echo the following is a compilation of your files, backed up into your desktop folder, BigBoss!
    D:\documents and settings\bigboss inc\desktop\backup /p

    when I execute this file, it says that it "cannot find the specified file" and then goes on with "press any key to continue" ect...

    how can it not find program files!? do i need to be more specific, I hope not because that s alot of files! Is there a 'switch' that Im not useing that needs to be there?

    MY C: drive is accessable from my desktop on D: drive. I can place files from D into folders on C so whats up?

  2. #2
    Join Date
    Mar 2006
    when files names have spaces in them, like program files, you should put them in double quotes like this:
    c:\"program files"\whatever.txt
    so the command processor would know when your command ended. same applies to
    c:\"documents and settings"\bigboss inc"\desktop\backup

  3. #3
    Join Date
    Aug 2006
    As far as I know, .BAT files will look up one specific file for you. It will NOT look up everything in a folder. Well, that's my two cents.

Similar Threads

  1. Replies: 1
    Last Post: 03-15-2008, 09:56 AM
  2. Writing Linux documentation..
    By Stuart in forum Linux - General Topics
    Replies: 3
    Last Post: 08-10-2003, 04:58 PM
  3. Writing audio CDs from MP3s
    By Dizzybacon in forum Linux - Software, Applications & Programming
    Replies: 4
    Last Post: 07-11-2003, 09:54 AM
  4. comprehensive batch file guide
    By ph34r in forum Windows - General Topics
    Replies: 0
    Last Post: 07-08-2003, 01:40 PM
  5. Writing an IRC bot in python?
    By Twelveguage in forum Linux - Software, Applications & Programming
    Replies: 4
    Last Post: 01-21-2002, 01:33 PM


Posting Permissions

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