Network login script help

Discussion in 'OT Technology' started by borborygmus, Mar 8, 2005.

  1. borborygmus

    borborygmus Guest

    Here where I work we are having a problem with the smscfg.ini file on some of the machines that we are rolling out. I need to create a login script that searches for the file, and if the file is found, I need it to search for certain text within the file, but I don't know how to write the script to do that.

    so basically we need something like this, but in script form...



    anyone have any ideas? :dunno:
     
  2. 5Gen_Prelude

    5Gen_Prelude There might not be an "I" in the word "Team", but

    Joined:
    Mar 14, 2000
    Messages:
    14,519
    Likes Received:
    1
    Location:
    Vancouver, BC, CANADA
    Code:
    if exist %windir%\smscfg.ini (
         find "I Love Donkey Sex" %windir%\smscfg.ini > nul
         if %errorlevel% == 0 del %windir%\smscfg.ini
    )
     
  3. borborygmus

    borborygmus Guest

    hmm.... :noes:
     
  4. 5Gen_Prelude

    5Gen_Prelude There might not be an "I" in the word "Team", but

    Joined:
    Mar 14, 2000
    Messages:
    14,519
    Likes Received:
    1
    Location:
    Vancouver, BC, CANADA
    :squint: Quote it in full :squint:
     
  5. borborygmus

    borborygmus Guest

    :rofl:

    The script actually worked when we put in the srting we wanted :mamoru:
     
  6. 5Gen_Prelude

    5Gen_Prelude There might not be an "I" in the word "Team", but

    Joined:
    Mar 14, 2000
    Messages:
    14,519
    Likes Received:
    1
    Location:
    Vancouver, BC, CANADA
    Of course it did - but I still have to have my fun :rofl:
     
  7. AbortionSurvivor

    AbortionSurvivor Active Member

    Joined:
    Jun 5, 2002
    Messages:
    3,016
    Likes Received:
    0
    Location:
    Nor. Cal
    5gen rocks as always
     

Share This Page