#Clojure, (削除) 40 (削除ここまで) 39 bytes
Clojure, (削除) 40 (削除ここまで) 39 bytes
(.exec(Runtime/getRuntime)"shutdown/s")
-1 byte by changing the flag from -s to /s, which allowed me to get rid of the space.
Basically the Java answer.
Testing this was fun. Windows decided to do a firmware update on my Surface the second it shut down. Of course.
(defn shutdown []
(.exec (Runtime/getRuntime) "shutdown -s"))
#Clojure, (削除) 40 (削除ここまで) 39 bytes
(.exec(Runtime/getRuntime)"shutdown/s")
-1 byte by changing the flag from -s to /s, which allowed me to get rid of the space.
Basically the Java answer.
Testing this was fun. Windows decided to do a firmware update on my Surface the second it shut down. Of course.
(defn shutdown []
(.exec (Runtime/getRuntime) "shutdown -s"))
Clojure, (削除) 40 (削除ここまで) 39 bytes
(.exec(Runtime/getRuntime)"shutdown/s")
-1 byte by changing the flag from -s to /s, which allowed me to get rid of the space.
Basically the Java answer.
Testing this was fun. Windows decided to do a firmware update on my Surface the second it shut down. Of course.
(defn shutdown []
(.exec (Runtime/getRuntime) "shutdown -s"))
#Clojure, (削除) 40 (削除ここまで) 39 bytes
(.exec(Runtime/getRuntime)"shutdown/s")
-1 byte by changing the flag from -s to /s, which allowed me to get rid of the space.
Basically the Java answer.
Testing this was fun. Windows decided to do a firmware update on my Surface the second it shut down. Of course.
(defn shutdown []
(.exec (Runtime/getRuntime) "shutdown -s"))