Home Whiteboard Graphing Calculator Online Compilers Articles Tools

Explore Categories

Find the perfect tutorial for your learning journey

Python TechnologiesDatabasesComputer ProgrammingWeb DevelopmentJava TechnologiesComputer ScienceMobile DevelopmentBig Data & AnalyticsMicrosoft TechnologiesDevOpsLatest TechnologiesMachine LearningDigital MarketingSoftware QualityManagement Tutorials View All Categories
Tutorials Courses Jobs Login
Batch Script Tutorial
  • Batch Script - Home
  • Batch Script - Overview
  • Batch Script - Environment
  • Batch Script - Commands
  • Batch Script - Files
  • Batch Script - Syntax
  • Batch Script - Variables
  • Batch Script - Comments
  • Batch Script - Strings
  • Batch Script - Arrays
  • Batch Script - Decision Making
  • Batch Script - Operators
  • Batch Script - DATE & TIME
  • Batch Script - Input / Output
  • Batch Script - Return Code
  • Batch Script - Functions
  • Batch Script - Process
  • Batch Script - Aliases
  • Batch Script - Devices
  • Batch Script - Registry
  • Batch Script - Network
  • Batch Script - Printing
  • Batch Script - Debugging
  • Batch Script - Logging
  • Batch Script - Quick Guide
  • Batch Script - Useful Resources
  • Batch Script - Discussion
Selected Reading
  • UPSC IAS Exams Notes
  • Developer's Best Practices
  • Questions and Answers
  • Online Resume Builder
  • HR Interview Questions
  • Computer Glossary
  • Who is Who
Home Batch_script Batch Script - Creating Files

Batch Script - Creating Files



Previous
Quiz
Next

The creation of a new file is done with the help of the redirection filter >. This filter can be used to redirect any output to a file. Following is a simple example of how to create a file using the redirection command.

Example

@echo off
echo "Hello">C:\new.txt

Output

If the file new.txt is not present in C:\, then it will be created with the help of the above command.

batch_script_functions.htm
Previous Quiz Next
Advertisements
  • ABOUT US
  • OUR TEAM
  • CAREERS
  • JOBS
  • CONTACT US
  • TERMS OF USE
  • PRIVACY POLICY
  • REFUND POLICY
  • COOKIES POLICY
  • FAQ'S
tutorials point logo
Download Android App Download IOS App

Tutorials Point is a leading Ed Tech company striving to provide the best learning material on technical and non-technical subjects.

Copyright 2026. All Rights Reserved.