Call logoff in Ant script
问题 I am trying to call the logoff command from my build.xml. I tried several combinations in my ant target such as : <target name="bat"> <echo>Executing batch script</echo> <exec dir="C:\WINDOWS\system32" executable="cmd"> <arg value="/c"/> <arg value="logoff"/> </exec> </target> But everytime, I get this error : "logoff is not recognized as an internal or external command, operable program or batch file" I don't know how to fix this issue. Thanks for helping. EDIT: logoff.xml <?xml version="1.0