WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

How To
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

Run from Current Location - Webpage


Question:

I have a script:
svg=FileExist("%winpath%\system32\Adobe\SVG Viewer\SVGView.dll")
IF SVG==@FALSE then RunWait("%currdir%SVGVIEW.EXE", "")
I just want to put a compiled winbatch EXE on our intranet site, and when the users click it and click "RUN FROM current location" it executes.

When I put this script on our webserver, and the users do a "Run from current location" (versus "Save as"), it fails trying to find the EXE which I have embedded into the compiled script. I know this is something to do with the files not extracting to temporary internet files when the script is launched - how do I make it so users don't have to save the file and THEN run it? I want them to have less steps (run from current location)?

When you do a RUN instead of a SAVE AS, Internet Explorer executes it in your Temporary Internet Files directory of your local profile. But apparently the rest of the included DLLs or EXEs don't extract to the same directory I guess?

Answer:

How do you set the currdir variable? Maybe try:
currdir=DirHome()

Maybe even add:

DirChange(DirHome())

User reply:

Thank you that fixed it!
Article ID:   W15996
File Created: 2004:03:30:15:42:08
Last Updated: 2004:03:30:15:42:08