%computername% to computername.txt

Discussion in 'Scripting' started by Michael, Jan 19, 2004.

  1. Michael

    Michael Guest

    Hi,

    I want to create a .cmd file that will add %computername%
    into a .txt file on the server.

    If 15 client computers run the .cmd file we want to have
    15 different computer names in the .txt file.

    any idea???

    /Michael
     
    Michael, Jan 19, 2004
    #1
    1. Advertisements

  2. In a Login Script...
    echo %computername% >> \\server\path\ComputerName.txt

    Dave



    | Hi,
    |
    | I want to create a .cmd file that will add %computername%
    | into a .txt file on the server.
    |
    | If 15 client computers run the .cmd file we want to have
    | 15 different computer names in the .txt file.
    |
    | any idea???
    |
    | /Michael
     
    David H. Lipman, Jan 19, 2004
    #2
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.