Sign in to follow this  
Followers 0
daslick

get domain from url?

3 posts in this topic

I have a variable of the relative path of a swf file... example... "/folder/folder2/game101.swf"

I have another variable.... example: http://www.gamewebsite.com/game101.html

From the path to the html file and relative path to the swf file I need to get the full path to the swf file.

The only way I could think to do it was to trim off "http://www." if it exists and everything after ".com" then use the command prompt to ping it... get it's ip... and use the ip with the relative path. ex: http://255.255.255.255/folder/folder2.game.swf

I know this is overworking it a bit... but I can't think of another way. Help please! :whistle:

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)


[center]Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.[/center]

Share this post


Link to post
Share on other sites

Thanks, I'd rather not use the ip method.... so I'll mess with the code from the second link when I get home :whistle:

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0