Solved

How do I create an empty file?

Posted on 2004-10-25
1,135 Views
Last Modified: 2008-02-01
I need to know the dos command to create create an empty file?

0
Question by:seckel
    3 Comments
     
    LVL 10

    Accepted Solution

    by:
    Hi seckel,
    copy nul file.txt

    Regards .. Alan
    0
     
    LVL 10

    Expert Comment

    by:ADSaunders
    seckel,
    where file.txt is the file name (or full path) that you wish to create.
    .. Alan
    0
     
    LVL 9

    Expert Comment

    by:DrWarezz
    Or, an easier to under 'why' solution:

    echo. > fileName.txt

    :)
    gL,
    [r.D]
    0

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone. Privacy Policy Terms of Use

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    TOMORROW TOMORROW.BAT is inspired by a question I get asked over and over again; that is, "How can I use batch file commands to obtain tomorrow's date?" The crux of this batch file revolves around the XCOPY command - a technique I discovered w…
    Being a system administrator some time we require to do things remotely, one of them is installing software. Here I am going to tell you how to install software through wmic (Windows management instrument console). I am not at all saying that this i…
    With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…
    Want to pick and choose which updates you receive? Feel free to check out this quick video on how to manage your email notifications.

    860 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now