fredag 16 september 2016

Liten övning i programmering som får systemet att skriva ut lite saker :)

#include <stdio.h>
#include <stdlib.h>

int main()
{

// Liten introdution till övningen vi fick
printf("\t------>  What diffrent commands do? <------\n");
system("pause");

// Listar mappar/filer
printf("\t ------>  Dir list files <------\n");
system("dir");
system("pause");

// Gör så man kan se macadressen
printf("\t ------>  How to check your mac adress? Thats easy just type getmac <------\n");
system("getmac");
system("pause");

// Listar filerna i den mapp du är inne i ex c:
printf("\t ------>  List files and folders, Just type tree <------\n");
system("tree");
system("pause");

// Öppnar ge utökad information om ditt system
printf("\t ------>  Why not get som information about your system? Just type systeminfo and wait <------\n");
system("systeminfo");
system("pause");

// Öppnar kontrollpanelen
printf("\t ------>  Why not just open the control panel? <------ \n");
system("appwiz.cpl");
system("pause");

// Öppnar notepad
printf("\t ------>  Why not just open notepad? <------ \n");
system("notepad");
system("pause");

return 0;
}

Inga kommentarer:

Skicka en kommentar