Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2011
    Posts
    11

    Check if exist if not download/andrun

    Current Code is

    What i'm trying to do; is check if file exist or directory exist then if so display a message... and if it doesn't exist then download/install a program the thing is I have more then one button named different things. and i got this almsot down.. I do.. I just can't figure it out


    I had this originaly (without checking the file/folder)


    Code:
    bRadioValue = RadioButton.GetChecked("fddy");
    if bRadioValue then
    	-- C
    	File.OpenURL("http:// blah balh.com", SW_SHOWNORMAL);
    end

    and I try to add this (I searched the forum and got something like this

    Code:
    bRadioValue = RadioButton.GetChecked("Firewall32");
    if bRadioValue then
     Folder.DoesExist (_ProgramFilesFolder .. "\\Java"); Dialog.Message("Formating Has Been Scheduled for Next Restart..", "Yep; You got that right we are formatting your data oh shoot,    Say good bye to your data.. Yes Yours.....    Just Kidding, Another Installation is detected.. I got ya.. ", MB_OK, MB_ICONEXCLAMATION, MB_DEFBUTTON1);
    else 
    	File.OpenURL("http://download.jacobkilgore.com/86.exe", SW_SHOWNORMAL);
    end
    I'm learning.. Quickly I should say;

    Could anyone shine some light on this?

    MrCoolGuy isn't so cool without learning and help !
    Last edited by MrCoolGuy; 01-12-2011 at 09:34 PM.

  2. #2
    Join Date
    Jan 2011
    Posts
    11
    Ah! I wish i could just use batch

    if exist button1checked goto HI
    if not exist button1checked goto HI1
    :HI
    If exist %programfiles%\Java msg * You already have it
    else start http://www.google.com/hi.exe
    :HI1 (this is here to skip above two lines but continue with the script.)

    if exist button2checked goto HEY
    if not exist button1checked goto HEY1
    :HEY
    If exist %appdata% msg * You already have it
    else start http://www.google.com/hey.exe
    :HEY1 (this is here to skip above two lines but continue with the script.)




    Selects RadioButton A:
    Clicks on Download
    Check if java folder exists; if not then go ahead and download .exe if does exist then display message
    Last edited by MrCoolGuy; 01-13-2011 at 12:01 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts