Jump to content

Soopaflyguy

Members
  • Posts

    3
  • Joined

  • Last visited

Reputation

0 Neutral

About Soopaflyguy

Personal Information

  • Biography
    Just your average geek
  • Occupation
    2nd Line IT Support
  • Interests
    Computers
  • Location
    London
  1. Thanks a million to all of you for the info, it has definitely given me a few more ways to try as opposed to just using my 'simple' script! Kind regards
  2. Thanks everyone for getting back so quickly. I have tried the %username% option but get the error - 'The filename, Directory name, or volume syntax label is incorrect'??? I have also tried the %appdata% option but get the error - 'The system cannot find the path specified'??? Also, the SIP_MY.NAME is based on our email which would be [email protected] whereas our usernames are BUI59900 (first 3 letters of surname followed by staff number) I would pull my hair out if I had any!! Again, any (more) help would be appreciated! Kind regards
  3. Soopaflyguy

    Be Gentle!

    This is my first post so I hope I get it right! I am trying to write a simple batch file for the company I work for which will shut down Microsoft Lync (I have sussed that bit) and then delete 2 files from the following location as we are having address book update issues: C:\Users\myusername\AppData\Local\Microsoft\Communicator\[email protected]\GalContacts.db C:\Users\myusername\AppData\Local\Microsoft\Communicator\[email protected]\GalContacts.db.idx This is the script I wrote for MY account: ------------- echo off taskkill /f /im communicator.exe echo Communicator has shut down pause C: del "C:\Users\myusername\AppData\Local\Microsoft\Communicator\[email protected]\GalContacts.db" del "C:\Users\myusername\AppData\Local\Microsoft\Communicator\[email protected]\GalContacts.db.idx" echo Files Deleted pause ------------- Now, the problem I have is that I have been asked to create this for any user that logs in to a machine in our board room. How can I change it so that the users username will be inserted where 'myusername' and '[email protected]' is? I am quite new to scripting so any help would be greatly appreciated! Kind regards
×
×
  • Create New...