Hey benny69 thanks! i tried to look for quotes are the image tags here the same as quotes where are they?? the buttons i mean? thanks
"Is the code you are posting part of a logon script or is it part of a utility?"
No; it is a program executed from a batch file like kix32 filename.kix. I run it on a server through the schedular. reason being is we run it at night while all workstations are on. It is for copying some mdb files to workstations. user dink around while they are downloading these and they get corrupt so we leave PCs on and run on schedule at night and we want to see which ones fail and which ones succeed thus the two txt files redirected to. I made a program in DOS batch that works with ERRORLEVEL just fine but it is hard to loop through arrays in DOS; i cant find how to do arrays in DOS? nicely! heheeee. Everything works great but i dont know how to redirector PC name to each file upon conditon met. The kicker is it creates the mapped drive from one admin server thus the /delete switch so i can go to each pc with mapped drive. i need to do it this way due to after hours.
not logging on i need a failure to connect error like error 53 or 67 in dos i heard in kix if the mapped command fails @Error is set to non zero which is fail? this is the entire code minus the batch file that kix it off. thanks
The reason I ask is because if this is a logon script there would be not reason to loop thru all your PC's and you could use the @WKSTA macro to retrieve the PC name.
If this is part of a utility to look at each PC, it will be hard to find out if it had trouble logging in or whatever.
It might be best if you post your entire code so that we can better help you.
|