We’d like to remind Forumites to please avoid political debate on the Forum.

This is to keep it a safe and useful space for MoneySaving discussions. Threads that are – or become – political in nature may be removed in line with the Forum’s rules. Thank you for your understanding.

📨 Have you signed up to the Forum's new Email Digest yet? Get a selection of trending threads sent straight to your inbox daily, weekly or monthly!

Help running Batch Files

2»

Comments

  • Aiadi
    Aiadi Posts: 1,840 Forumite
    Created the .bat file as instructed but when I run it, I just get the black box (the command prompt window) for a fraction of a second and nothing else happens. What am I doing wrong here?

    That is what I've put:
    @echo off
    Call C:\Documents and Settings\User\Desktop\FileSync\Batch Files\My Drive - NDAS to HDD.!!!!!!_batch
    Do I want it? ......Do I need it? ......What would happen if I don't buy it??????
  • esuhl
    esuhl Posts: 9,409 Forumite
    Part of the Furniture 1,000 Posts Name Dropper
    I'm not overly familiar with batch files, but I seem to remember having one that uses "start" instead of "call"... It was to apply a .reg registry patch, but I'm not sure what the difference is off the top of my head.

    The reason the command prompt window disappears is because the command is run, completes, then the window closes automatically. I think the command "pause" prompts you to press a key before it closes, giving you time to check any messages that are returned.

    EDIT:
    Oh, and I think you'll need double quotes round the path name, since it includes space characters.
  • Aiadi
    Aiadi Posts: 1,840 Forumite
    esuhl wrote: »
    Oh, and I think you'll need double quotes round the path name, since it includes space characters.

    I am grateful as this has done the trick. Thanks to all for you help.
    Do I want it? ......Do I need it? ......What would happen if I don't buy it??????
This discussion has been closed.
Meet your Ambassadors

🚀 Getting Started

Hi new member!

Our Getting Started Guide will help you get the most out of the Forum

Categories

  • All Categories
  • 352.2K Banking & Borrowing
  • 253.6K Reduce Debt & Boost Income
  • 454.3K Spending & Discounts
  • 245.2K Work, Benefits & Business
  • 600.9K Mortgages, Homes & Bills
  • 177.5K Life & Family
  • 259.1K Travel & Transport
  • 1.5M Hobbies & Leisure
  • 16K Discuss & Feedback
  • 37.7K Read-Only Boards

Is this how you want to be seen?

We see you are using a default avatar. It takes only a few seconds to pick a picture.