Jump to content

Recommended Posts

i have a text file called pclist.txt on the root of my c: drive

the contents of the file is

\\pc1

\\pc2

\\pc3

i also have uptime.exe in my system32 directory

how do i get this to work.....

FOR /F IN c:\pclist.txt DO uptime

Link to comment
Share on other sites


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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...