net_user Posted May 25, 2010 Share Posted May 25, 2010 i have a text file called pclist.txt on the root of my c: drivethe contents of the file is\\pc1\\pc2\\pc3i also have uptime.exe in my system32 directoryhow do i get this to work.....FOR /F IN c:\pclist.txt DO uptime Link to comment Share on other sites More sharing options...
Yzöwl Posted May 25, 2010 Share Posted May 25, 2010 Within a Command Prompt Window:FOR /F "TOKENS=*" %# IN (C:\PCLIST.TXT) DO @UPTIME.EXE %# Link to comment Share on other sites More sharing options...
net_user Posted May 25, 2010 Author Share Posted May 25, 2010 thanks, thats just want i needed.now my next question is, how to remove 2 lines at the beginning of a text file?the 2 lines are.......Server Name Remark------------------------------------------------------------------------------- Link to comment Share on other sites More sharing options...
net_user Posted May 25, 2010 Author Share Posted May 25, 2010 never mind, i figured it out. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now