Guest User

Batch file asssistance.

a guest
Mar 4th, 2013
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. SET destpath="\\networklogs\measure_sw_usage\extractinfo_%COMPUTERNAME%.txt"
  2. for /f "skip=2 tokens=1,* delims=," %%A IN ('wmic computersystem get username /format:csv') DO (echo %%B >>%destpath%)
  3.  
  4. what the output should be
  5. testdomain\username
  6.  
  7. what the output in the text file shows
  8. estdomain\username
Advertisement
Add Comment
Please, Sign In to add comment