|
|
Update a File on All Workstations with a Batch File If you have a file that needs to be updated on all of your workstations, create a batch file utilizing the "net use" command. Here's how: net use z: \\wgnrNT-01\c$\directoryname net use y: \\wgnrNT-02\c$\directoryname net use x: \\wgnrNT-03\c$\directoryname These three lines from a batch file map drives x: y: and z: on the host computer as the target directory for the file. When running the batch file (supposing you named it userfiles.bat), type userfiles.bat filename. The filename should be the name of the file you wish to drop on every computer. Include the following lines of text to use that command line parameter: copy %1 "x:" copy %1 "y:" copy %1 "z:" If you wish to clear all the mappings, include: net use z: /del net use y: /del net use x: /del
|