matt_p3 Posted November 18, 2007 Report Share Posted November 18, 2007 I need to know how to read a .txt file and save the first line as a variable in command prompt without the text being read or the filename being displayed in a batch file.Thanks for all your replies! Quote Link to comment Share on other sites More sharing options...
ɹəuəllıʍ ʇɐb Posted November 18, 2007 Report Share Posted November 18, 2007 Welcome to the Windows Forum.But sorry, I cannot understand what you want to achieve - please clarify. Do you want to write a program that does that, or a script, or what...? Quote Link to comment Share on other sites More sharing options...
matt_p3 Posted November 19, 2007 Author Report Share Posted November 19, 2007 I just need a code that i can use in a batch file that allows me to read the first line of a .txt file without letting the first line be seen.to read the first line i would use:type filepathbut i cannot figure out how to save the text on the first line as a variable Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.