27.08.2014, 22:29
title
i need open file bat with cmd i try with this code :
http://pastebin.com/tESVdK22
ty for helpers
i need open file bat with cmd i try with this code :
http://pastebin.com/tESVdK22
ty for helpers
if (strcmp(cmdtext,"/123123", true ) == 0 )
{
if(!fexist("file.bat"))
{
print("Your file does not exist");
}
else
{
new File:example1 = fopen("file.bat", io_readwrite);
if(example1)
fwrite(example1,"asdasd");//write the file
fread(example1, "asdasd");
fclose(example1);
}
}
return 1;
}
|
your code is wrong...
pawn Код:
|