Here is the code;

#include<stdio.h>

int main (int argc, char *argv[])
{
    if (argc < 2)
        printf ("You didn't enter any arguments.\n");
    else
        printf ("Your argument at position 1 is: %s\n", argv[1]);
    
    printf ("\nYour file path is:\n%s\n\n", argv[0]);
    
    return 0;
}

JB

_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to