I'm new and I'm not very expert with the basic code.
How can I shutdownn the pc whithout using a file batch or some elements out of my program?

This may help.

also try --- Shell "shutdown -s"

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.18 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.