View Full Version : Folder Create
RVillanueva
07-26-2006, 11:57 AM
i need to check if
c:\programs files\factorysuite\ioservers\ak2 exist but allway tell me that not exist why ??
bIOPath1 = Folder.DoesExist(_ProgramFilesFolder.."\\FactorySuite\ioservers\ak2");
if bIOPath1 == 1 then
Dialog.Message("Aviso", "Exist !!");
else
Dialog.Message("Aviso", "Not exist !!");
end
then if i tryu to diaply the bIOPath1 value using dialog.message i have an error.
Any body knows why ??
Best Regards
Try changing this line:
if bIOPath1 == true then
And this line:
bIOPath1 = Folder.DoesExist(_ProgramFilesFolder.."\\FactorySuite\ioservers\ak2");
to this:
bIOPath1 = Folder.DoesExist(_ProgramFilesFolder.."\\FactorySuite\\ioservers\\ak2");
RVillanueva
07-26-2006, 01:16 PM
bIOPath1 = Flase;
bIOPath2 = Flase;
result = Dialog.Message("Importante", "Ya estan Instalados los IOServers ?", MB_YESNO, MB_ICONQUESTION);
if result == 6 then
bIOPath1 = Folder.DoesExist(_ProgramFilesFolder.."\\FactorySuite\\IOServer\\ABKF2");
if bIOPath1 == True then
Dialog.Message("Aviso", "Directorio Existe !!");
else
Dialog.Message("Aviso", "Directorio No existe !!");
end
end
The folder exist i dont know where is the problema ?????????
Boolean values are case sensitive and must be true or false.
By this token, True and Flase are not valid boolean value and will cause errors.
Here are some updates to your code with changes marked in red:
bIOPath1 = false;
bIOPath2 = false;
result = Dialog.Message("Importante", "Ya estan Instalados los IOServers ?", MB_YESNO, MB_ICONQUESTION);
if result == 6 then
bIOPath1 = Folder.DoesExist(_ProgramFilesFolder.."\\FactorySuite\\IOServer\\ABKF2");
if bIOPath1 then
Dialog.Message("Aviso", "Directorio Existe !!");
else
Dialog.Message("Aviso", "Directorio No existe !!");
end
end
RVillanueva
07-26-2006, 02:25 PM
Works !!!, Thank you very much !!
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.