Fastboot commands are not working I have tried to relock my Zenfone Max pro m2,but after installing stock recovery when I tried to run relock.cmd, it is not working showing that 

write to device failed(invalid argument)


Even when I have tried to find the device info using fastboot command, but I'm getting the same error as 

write to device failed( too many links) 


Please help me with this.
I don't know if you are running relock.cmd as a file or a command, but the usual way to lock the bootloader in Fastboot is 

fastboot oem lock


Try    

fastboot devices


And wait until you see your device is found, then do the lock   

fastboot oem lock


Please tell me what errors you get ?



Try also,    


  fastboot flashing lock
        fastboot flashing lock_critical