Jump to content

get domain from url?


daslick
 Share

Recommended Posts

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:

Link to comment
Share on other sites

  • Moderators

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.

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...