Avatar of Mikki-Hiiri
Mikki-HiiriFlag for Finland

asked on 

How to change URL in the address bar to an client side environment variable?

Hello all.

I am building a "poor man's sms" distribution web-page. In practise, software installation packages are replicated to a few servers in a few cities and I would like to make one general page, where all available software distributions are available for users (links to MSI installer scripts or batch files).

I have implemented a %SMSDP% variable in the LOGON script so that each compter gets the closest (in the LAN) distribution server address to the SMSDP environment variable. I have tested that using %SMSDP% in the Internet Explorer will bring me to the local distribution server, but adding that functionality into html makes me grazy. It looks that no matter how I write %SMSDP% into a href link it will be never translated into correct environment variable.

So, is there some way to take "dos" environment variable into code (html, php or java), use it in as a URL and then kick in installer from the web browser (IE 6 or 7).
Web ServicesJavaScriptPHP

Avatar of undefined
Last Comment
Zvonko
Avatar of Mikki-Hiiri
Mikki-Hiiri
Flag of Finland image

ASKER

To give more in depth into this ...

a href would like something like this: OpenOffice
and then in logon script with KIX32 I set: SET "SMSDP=\\CITY1DP1\SMS-DP$" which is shown in CMD - SET as a environment variable. If I type to Internet Explorer address bar %SMSDP%, it will bring me to the \\CITY1DP1\SMS-DP$ share.
ASKER CERTIFIED SOLUTION
Avatar of Zvonko
Zvonko
Flag of North Macedonia image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of Zvonko
Zvonko
Flag of North Macedonia image

B is grading for Bad (it would be G for Good :)
Why do you grade if you did not have understood the details? If you had problems I would have provide to you support.
In EE is B labeled as Good but I like to get As for my efforts.
The grading is for you the only way to say ThankYou and for me it is a points multiplier.

Avatar of Mikki-Hiiri
Mikki-Hiiri
Flag of Finland image

ASKER

Hmm .. did I make mistake? Sorry! I meant good, but maybe accidently pressed B. How I can fix that?

Anyhow, I found Intralaunch as one solution and also if you generate web page with Frontpage it can execute executables ... as well as using XML (in a few HP driver CDs they use similar setting).
Avatar of Mikki-Hiiri
Mikki-Hiiri
Flag of Finland image

ASKER

I can not find way to fix the problem, maybe you can contact admin and ask them to change grading to Good. Your answer was perfect and I stopped trying to use wrong approach. After a few days I found several other ways to overcome the problem and at this moment I am already implementing "poor man's sms".

Once again, sorry about the "B" which supposed to be "G".
Avatar of PenguinMod
PenguinMod
Flag of Antarctica image

Mikki-Hiiri,

Please review our grading tips at https://www.experts-exchange.com/help.jsp#hi97.  Technically speaking, A=Excellent, B=Good, and C=Average. In practice, however, A is a complete answer and B is an almost complete answer.  C are incomplete answers, but experts should be given a chance to add to their comments first.  (The grading tips explain it better.)

Grade changed to an A.

PenguinMod
Moderator, Experts Exchange
Avatar of Zvonko
Zvonko
Flag of North Macedonia image

Thank you PenguinMod.
Avatar of Mikki-Hiiri
Mikki-Hiiri
Flag of Finland image

ASKER

I guess this is something to do what "Good" means in some countries. In Finland "Good" really means "well done = meet expectations", but as an example in USA "good" seem to mean something like "not so well done". In Finland "Excellent" means "exceeds expectations". Lesson learned. Thank you for your help.
Avatar of Zvonko
Zvonko
Flag of North Macedonia image

ei kestä
JavaScript
JavaScript

JavaScript is a dynamic, object-based language commonly used for client-side scripting in web browsers. Recently, server side JavaScript frameworks have also emerged. JavaScript runs on nearly every operating system and in almost every mainstream web browser.

127K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo