troubleshooting Question

Logon Script Runs if File is Present

Avatar of byrianr
byrianrFlag for United States of America asked on
Windows Server 2003Active Directory
4 Comments1 Solution392 ViewsLast Modified:
Hello. I am trying to create a logon script that is simple, yet having some issues. I basically want to create a script that checks to see if a file exists on the local C drive. If that file exists, then I do not want to run anything further, but if that file does not exist, I want to run a script to copy a new file. Makes sense??
@echo off
 
if [DoNotCopy<>c:\nocopy.txt] then
 
copy "%logonserver%\netlogon\Office_Update\Officeupdate.exe" C:\OfficeWyse
 
Else End
ASKER CERTIFIED SOLUTION
Farhan Kazi
Systems Engineer
Join our community to see this answer!
Unlock 1 Answer and 4 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 4 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros