Hi. I am new to the site and not too clever at Pascal (beginner).
I need to be able to get an IP address, then compare it with one I want to use then if the address is the same run a program if not quit.
This is to get Laptops to run a backup program only on LAN and NOT when using VPN.
I thought something along the lines of
Get IP <coding ???)
If IP = <ip address> then
run program
else
Quit.
Obviously not that easy so can anyone help me please.
rockinsteve
0
Newbie Poster
Recommended Answers
Jump to PostIf i'm not mistaken one of the parameters to ShellExecute() is the startup path of the process. If this is the only reason for having a shortcut could you not just set the Startup Path with ShellExecute()? I'm not trying to argue or convince you to use another way... I …
Jump to PostHere's a sample from a code I use for opening and executing other programs from within dephi. This executes a file and gives it a 2nd file as a parameter.
params
procedure execute_file(file_to_execute:string;file_to_transfer:string); var str_to_execute:string; begin if fileexists( file_to_execute )=false then exit; if fileexists( file_to_transfer )=false …
All 7 Replies
rockinsteve
0
Newbie Poster
KlementHonza
-15
Newbie Poster
sknake
commented:
I agree with Salem
+0
rockinsteve
0
Newbie Poster
sknake
1,622
Senior Poster
Featured Poster
rockinsteve
0
Newbie Poster
Mikav6
0
Newbie Poster
rockinsteve
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.