Jump to content
Sign in to follow this  
daslick

get domain from url?

Recommended Posts

daslick

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
SmOke_N

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.

Share this post


Link to post
Share on other sites
daslick

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  

×