Windows logoff Scriipt

qwertyiopqwertyiop Member Posts: 725 ■■■□□□□□□□
I want to create a logoff script to deploy via GPO. The GPO is to intstall a patch for AutoCAD.

Is there a way to for it to create a file in the %systemroot% named civ3dpatch after the install?

I want it to look for that file before it starts, if it exist then END and if it doesnt exist then install.

Comments

  • rsuttonrsutton Member Posts: 1,029 ■■■■■□□□□□
    You could script something using the IF Exist or the IF Not Exist commands followed by either ending the script or executing the installer.
  • qwertyiopqwertyiop Member Posts: 725 ■■■□□□□□□□
    rsutton wrote: »
    You could script something using the IF Exist or the IF Not Exist commands followed by either ending the script or executing the installer.


    I have never usv=ed that command before. Can you please show me an example?
  • RTmarcRTmarc Member Posts: 1,082 ■■■□□□□□□□
    if not exist c:\directory md c:\directory


    In your case, I think it would be something like

    if exist C:\directory\file.name goto end (end would be a placeholder at the end of the file)

    Syntax may be a little off since it has been a while since I've had to use that.
Sign In or Register to comment.