What is copy con?

Welcome Delta Sigma Pi

  • Accessibility
  • Sales:

    Home:

    1-800-426-7235

    Business:

    1-866-426-0911

    Chat Now >

    Visit Sales Support Page >


    Order Support:

    Order Lookup >

    Visit Order Support Page >

    Technical Support >

Lenovo
All
  • All
  • Laptops
  • Desktops
  • Workstations
  • Monitors
  • PC Accessories & Electronics
  • Tablets
  • Servers & Storage
  • Servers Accessories
  • Sign In / Create Account
    My Lenovo Account
    Keep track of your wishlist, orders, and rewards all in one place
    Sign In / Create Account
    Welcome Back!
    Access your order, subscriptions, saved carts, rewards balance, and profile
    View My Account
    Orders
    View & track your orders
    Rewards
    Earn & redeem Rewards
    Profile
    Edit name, password, and account settings
    Wishlist
    Manage a wishlist of your favorite products
    Products
    Manage your devices, accessories
    Product Registration
    Register your product and/or update your warranty dates
    Sign Out
  • My Lenovo Rewards
  • Cart
  • Products
  • Solutions
  • Services
  • Support
  • About Lenovo
  • Deals
  • Student
  • Gaming
  • AI
  • Digital Workplace
  • Hybrid Cloud
  • Edge
  • Sustainability
  • TruScale
  • Solutions by Industry
  • Alliance Partners
  • Other Solutions
  • Resources
TEMPORARILY UNAVAILABLE
DISCONTINUED
Temporary Unavailable
Cooming Soon!
. Additional units will be charged at the non-eCoupon price. Purchase additional now
We're sorry, the maximum quantity you are able to buy at this amazing eCoupon price is
Sign in or Create an Account to Save Your Cart!
Sign in or Create an Account to Join Rewards
View Cart
Remove
Your cart is empty! Don’t miss out on the latest products and savings — find your next favorite laptop, PC, or accessory today.
item(s) in cart
Some items in your cart are no longer available. Please visit cart for more details.
has been deleted
Please review your cart as items have changed.
of
Contains Add-ons
Subtotal
Proceed to Checkout
Yes
No
Popular Searches
What are you looking for today ?
Trending
Recent Searches
Items
All
Cancel
Top Suggestions
View All >
Starting at
  • Black Friday in July! Limited-time Doorbusters + Buy more, Save more!  Shop Now >

  • My Lenovo Rewards! Earn 3%-9% in rewards and get free expedited delivery on select products. Join for Free >

  • Buy online, pick up select products at Best Buy. Shop Pick Up >

  • Lease-to-own today with Katapult. Get started with an initial lease payment as low as $1! * Learn More >

Home > Glossary > What is copy con?
Glossary Hero
Learn More
StarStar

Annual Sale

Lenovo Laptop SaleLenovo Laptop Sale

Laptop Deals

Desktop DealsDesktop Deals

Desktop Deals

Workstation DealsWorkstation Deals

Workstation Deals

StoreStore

Pick Up Today at Best Buy

ControllerController

Gaming PC & Accessory Deals

MouseMouse

PC Accessories & Electronics Deals

MonitorMonitor

Monitor Deals

Tablet and phoneTablet and phone

Tablets & Phones Deals

ServerServer

Server & Storage Deals

Discount tagDiscount tag

Clearance Sale


What is copy con?

Copy con is a command used in MS-DOS and Windows to create or overwrite the content of a text file directly from the command prompt. It's a quick way to input text without using a text editor.

How do I use copy con?

To use copy con, open the command prompt and type 'copy con' followed by the name of the file you want to create or overwrite. Press Enter, and you can then type the text directly into the console. To save the text, press Ctrl+Z and then Enter.

Can I create multiple lines with copy con?

Yes, you can easily create multiple lines with copy con. After typing the first line's content, press Enter to move to the next. Repeat this process until you've entered all the desired text. It's a straightforward method for inputting multiline text directly from the command prompt. This feature makes copy con a quick and efficient tool for creating simple text files or scripts with organized and structured content, especially when you need a no-frills approach to multiline text input in a command-line environment.

What happens if I want to edit the text, I entered with Copy con?

Editing text entered with copy con is not possible. Once you've inputted the text and pressed Enter, there's no built-in feature for modifications. To make changes, you'll need to start the input process anew. Copy con serves as a quick and basic tool for text input without the editing capabilities found in more advanced text editors. For extensive edits or revisions, it's recommended to use a dedicated text editor that offers a range of features for a smoother and more efficient editing experience.

Does copy con support special characters?

Yes, copy con supports special characters. You can include symbols, punctuation, and other special characters in your text just like you would in a regular text editor. However, keep in mind that you won't have the ability to go back and edit these characters once entered.

Can I use copy con to create program source code?

Certainly, you can use copy con to create simple program source code. It's a basic way to input code directly from the command line. However, for larger and more complex code, it's advisable to use a dedicated text editor that provides better editing features.

What's the advantage of using copy con over a text editor?

The primary advantage of copy con is its simplicity and quick usage. It's a straightforward method for entering text directly into a file without the need for a separate text editor. It's handy for creating small text files or simple scripts on the fly.

Could I use copy con in a batch file?

Absolutely, you can use copy con in a batch file to automate the process of creating or modifying text files. By including the necessary copy con commands in a batch script, you can streamline the text input process and make it part of a larger automated workflow.

When would I choose copy con over a modern text editor?

You might choose copy con over a modern text editor when you need a quick and no-frills way to input text directly from the command line. It's useful in situations where you don't have access to a graphical environment or need a lightweight solution for basic text input.

Does copy con work in modern Windows versions?

Yes, copy con still works in modern Windows versions that support the command prompt. While it may seem outdated compared to graphical text editors, it remains functional for users who prefer or require command-line interfaces for certain tasks.

Can copy con be used for creating hypertext markup language (HTML) files?

Certainly, you can use copy con to create simple HTML files. It's suitable for entering basic HTML markup directly from the command line. However, for more extensive web development tasks, you might prefer using dedicated HTML editors with advanced features.

How does copy con handle line breaks?

Copy con handles line breaks similarly to how a regular text editor does. Pressing Enter creates a new line in your text. This allows you to structure your content with line breaks as needed, making it suitable for creating organized and readable text files.

Is copy con suitable for complex document creation?

No, copy con is not ideal for complex document creation. It lacks the advanced features and editing capabilities found in modern word processors. For lengthy and intricate documents, it's better to use dedicated document editing software that provides a more robust set of tools.

Can copy con be used for coding competitions or quick scripts?

Yes, copy con can be handy for coding competitions or situations where you need to create quick scripts on the fly. Its simplicity and direct approach make it suitable for rapid text input, allowing you to focus on coding without the overhead of a full-fledged text editor.

How does copy con handle file extensions?

Copy con doesn't automatically add file extensions. When using copy con to create a file, you need to include the desired file extension in the filename. For example, if you're creating a text file, you would type 'copy con filename.txt' to ensure the correct file type.

Could copy con be used in a programming tutorial?

Certainly, copy con could be used in a programming tutorial to demonstrate basic file creation and text input from the command line. It provides a straightforward example of how to use a simple command for quick tasks, making it accessible for beginners learning about command-line operations.

What limitations should I be aware of when using copy con?

One notable limitation of copy con is the lack of editing capabilities once text is entered. If you make a mistake or need to modify the content, you'll have to start over. Additionally, it's not suitable for tasks requiring advanced formatting or collaborative editing.

How does copy con handle large amounts of text?

Copy con is more suitable for handling smaller amounts of text. While there's no strict character limit, entering large volumes of text using copy con may become cumbersome. For extensive text input or editing, using a full-featured text editor or word processor is recommended.

Can copy con be used to copy files?

No, copy con is not designed for copying files. It's a command in MS-DOS and Windows used for creating or overwriting text files directly from the command prompt. While its name might suggest file copying, its functionality is specifically tailored for quick text input and file creation. For copying files in the command prompt, you would use the 'copy' command followed by the source and destination file paths. When handling file copying tasks, it's essential to use the appropriate command to ensure the accurate and efficient transfer of data between locations.

Looking for a Great Deal?
Shop Lenovo.com for great deals on A+ Education PCs, Accessories, Bundles and more.
Shop Deals Now

  • Legion 7i Gen 9 (16″ Intel) Gaming Laptop
    Starting at
    $1,699.99
    Learn More
  • ThinkPad X9 15 Aura Edition (15ʺ Intel) Laptop
    Starting at
    $1,127.97
    Learn More
  • Yoga Book 9i (13” Intel)
    Starting at
    $1,999.99
    Learn More
  • Yoga 9i 2-in-1 Aura Edition (14″ Intel) Laptop
    Starting at
    $1,439.99
    Learn More
  • ThinkPad P1 Gen 7 (16″ Intel) Mobile Workstation
    Starting at
    $1,871.22
    Learn More
  • Shop
    • Student Deals
    • K-12 Student Laptops
    • Student Accessories
    • Laptops by Major
    Education resource
    Explore
    • What is STEM?
    • Best Laptops for College
    • Student & Teacher Discounts
    • Lenovo Sustainability Programs
    Education carry case

    Stem Articles
    See All STEM Articles
    • Online STEM Education

    • STEM Career Tips & Resources

    • Women in STEM

    • STEM Educator Training

    • STEM Grants & Funding

    • STEM Education: Coding for Kids

    • STEM Education: Robotics

    • STEM Education: Biotechnology

    • STEM Education: Sustainability

    • STEM Education: AI & ML

    While every effort has been made to ensure accuracy, this glossary is provided for reference purposes only and may contain errors or inaccuracies. It serves as a general resource for understanding commonly used terms and concepts. For precise information or assistance regarding our products, we recommend visiting our dedicated support site, where our team is readily available to address any questions or concerns you may have.

    Why Lenovo?

    Go Greener with Leno...

    Lenovo is committed to Smarter Climate Action with lower energy laptops, use of sustainable materials and packaging, and available CO2 Offset Services.
    Learn More
    pastel background

    Get It Now, Pay For ...

    Lenovo has multiple financing option: the Lenovo Credit Card, installment plans, and lease-to-own financing op...
    Learn More
    pastel background

    Productivity & Peace of Mind

    Stay productive with Premium Care Plus - 24/7 priority support and coverage against accidental damage. Power through your day with our Smart Performance and extended battery solutions.
    Learn More
    pastel background

    Fast & Secure

    Get the most from your laptop with Lenovo’s state-of-the-art Smart Performance, delivering powerful, all-in-on...
    Learn More
    pastel background

    Assistance and Suppo...

    Chat with a trained professional who can help you find the right products, place or check on an order, or setup your Education laptop.
    Contact Us
    pastel background
    Enter email to receive Lenovo marketing and promotional emails. Review our Privacy Statement for more details.
    Please enter the correct email address!
    Email address is required
    • Facebook
    • Twitter
    • Youtube
    • Pinterest
    • TikTok
    • Instagram
    Select Country / Region:
    Country
    AndroidIOS

    About Lenovo

    • Our Company
    • News
    • Investors Relations
    • Compliance
    • ESG
    • Product Recycling
    • Product Security
    • Product Recalls
    • Executive Briefing Center
    • Lenovo Cares
    • Careers
    • Formula 1 Partnership

    Products & Services

    • Laptops & Ultrabooks
    • Smarter AI for You
    • Desktop Computers
    • Workstations
    • Gaming
    • Tablets
    • Servers, Storage, & Networking
    • Accessories & Software
    • Services & Warranty
    • Product FAQs
    • Outlet
    • Deals
    • Lenovo Coupons
    • Cloud Security Software
    • Windows 11 Upgrade

    Resources

    • Legion Gaming Community
    • Lenovo EDU Community
    • Lenovo Pro Community
    • Lenovo Pro for Business
    • My Lenovo Rewards
    • Lenovo Financing
    • Lenovo Trade-in
    • Affiliate Program
    • Affinity Program
    • Employee Purchase Program
    • Lenovo Partner Hub
    • Laptop Buying Guide
    • Where to Buy
    • Glossary

    Customer Support

    • Contact Us
    • Policy FAQs
    • Return Policy
    • Shipping Information
    • Order Lookup
    • Register a Product
    • Replacement Parts
    • Technical Support
    • Forums
    • Provide Feedback
    © 2025 Lenovo. All rights reserved.
    PrivacyCookie Consent ToolSite MapTerms of UseExternal Submission PolicySales terms and conditionsAnti-Slavery and Human Trafficking Statement
    Compare  ()
    x
    Call

    Need Help? Call: 

    1-800-426-7235
    Select Your Store
    Add items to your cart?
    We've noticed that you've entered a different store. Do you want to add these items to your cart in the new store?
    No Yes. Add in Lenovo Pro

    close_icon

    Sign up and receive up to $100
    off your next purchase.
    Click here for offer details
    Are you shopping for a business?

    No, Thanks

    Click here for offer details
    *Offer valid for new subscribers only. Not valid on previous purchases.
    Lenovo Privacy Policy
    Thanks for signing up!
    You should receive an email from us within the next 2 hours
    *Offer valid for new subscribers only. Not valid on previous purchases.
    Lenovo Privacy Policy
    An error occurred while submitting your request.
    Please try again later.