Question

by 12 replies
14
.............thanks
#programming #nda #templates
  • if(requiredprogram)
    {
    run;
    }
    else()
    {
    die;
    }

    Its been awhile since I played with the .NET framework syntax, but that's basically as difficult as it would need be.
  • thanks.....
  • my confidence level would be low for any programmer that said anything wasnt possible, I would prefer that if they didnt know to hear things like, Im not really sure but let me look into that for you, nothing is impossible in programming...

    as for your question, im not really sure if this is the best way to accomplish what you are trying to achieve, care to share some more information ,theres likely an easier way of doing this...
  • Impossible!! unbelievable....

    Of course its possible you could do this with Cmd and that's as old as the hills.

    I regularly do this on a program i don't wont someone copying and using for themselves which i let work use for doing backups of a system in for repair.

    If he reckons it isn't possible i would find another programmer
  • Impossible!! unbelievable....

    Of course its possible you could do this with Cmd and that's as old as the hills.

    I regularly do this on a program i don't wont someone copying and using for themselves which i let work use for doing backups of a system in for repair.

    If he reckons it isn't possible i would find another programmer
  • thanks for help guys..
    • [1] reply

    • I think i know why hes finding this complicated, its not such an easy task to add a file to an already built exe, once a project is built it should already have all the existing files needed packaged into the exe, adding a file at install time is probably the most complicated as it requires creating a custom installer to handle how the program is installed which can involve a bit of work, doing it after install requires a fuzzy search for the file which can be an inefficient task especially if you are searching for a file with a totally unknown location.


      however far from impossible and a workaround that could accomplish this for you is to have the program search a 'specific folder' for the file on startup, if its there continue if not have an option pop up to install the required file, the user can then browse for the file and select it, then the application will place the file into the 'specific folder' that will be searched on start up
  • That task is really simple Shouldn't take too long to learn. You can always ask for someone on Guru.com / Elance to fix it for you - shouldn't cost more than 20-30$.
  • It really depends on what that "config" file does, but generally speaking it's very easy to have your program "search" for a file. The problem is, that searching the users entire drive for a files can take quite a long time (possibly even 30min+).

    Another option would be along the lines of what your programmer suggested. Perhaps for every person that has access to the program has to register online, and then provide that info when the app first starts. The app can then communicate with the web server to verify that those credentials are correct and then allow continued use of the software.

    Searching for a file on the users computer isn't impossible, it's just a dumb idea. Relying on the file being in the same folder as the app isn't impossible, it's just a dumb idea. Both those ideas are relying on the user to keep things where they should be, and that's always a bad idea.
  • actually thinking about this again, theres no reason a blank file cant be pre-installed with the app and then updated from the file you supply...

    this will solve the issue of searching for the file as it will always be where you put it, the validation side of things will be run from the content inside the file as opposed to checking for the file itself, security will be alot better done this way as well as there will be no way for the user to tell easily where the file contents ended up.

    i got bored and decided to build a simple app that will accomplish this, ping me across some contact details and i'll send it over for you to look at, no cost i just got bored, besides its in such a simple format it'll need some work to get it to the standard you require but atleast you'll see how it 'could' be done
    • [1] reply
  • The best way to do it, is make your program read the contents of the file itself and not just the file itself. I would also make it binary, and make the program search for certain bytes in a certain sequence.

Next Topics on Trending Feed