An official Batch Programming blog! To Solve the daily problems with windows and fixing them with little notepad scripts. Unlock the Hidden Secrets of Windows, Learn to crack Software via CMD & Make your own Programming tools. Understand to Manipulate your PC via CMD.

TheBATeam Forum

How to set a variab...
 
Notifications
Clear all

How to set a variable with a valor located in a txt file  


SableRojo00
Posts: 3
(@sablerojo00)
New Member
Joined: 3 weeks ago

How to set a variable with a valor located in a txt file

1 Reply
Kvc
Posts: 28
 Kvc
Admin
(@thekvc)
Admin
Joined: 2 years ago

Use the following command:

 

Set /p _Var= < "Path to text file"

 

Reply
Share:

© 2020 TheBATeam

Our Core Values   /   Terms & Conditions   /   Privacy Policy   /   Why Register?

Theme by Anders Norén