troubleshooting Question

add IF command in autoexec.bat

Avatar of wajhiuddin
wajhiuddin asked on
Microsoft DOSMicrosoft ApplicationsMicrosoft Development
24 Comments1 Solution378 ViewsLast Modified:
I created a bat file to copy an some .exe and folders on our laptops which seem to be working fine but I need ot add couple of funtions to it
(1) IF any of the  command failed it shoud stop the process instead of going further and print the message saying "operation failed "
(2) I also need to add to bring a message asking "is this a TABLET ? "Y" or "N"
if user enters Y then run command  "copy sysprep.inf c:\sysprep"  and then go to next  if N  go to to next which is the following command
"C:\sysprep\sysprep -mini -reseal"
please don't throw the links out of google unless you tried them already and have an experience because I had tried them and they are kind of went over my head

Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 24 Comments.
Join the Community
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 24 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