Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

script to close all open files

Status
Not open for further replies.

Kerbouchard

IS-IT--Management
Aug 28, 2002
145
US
Does anyone have any suggestions--

for /f "skip=4 tokens=1" %a in ('net files') do net files %%a /close

I got this one off the microsoft site and put it in a batch file but it doesn't seem to be working.

Thanks in advance!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top