Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 277
  • Last Modified:

Downloading .BAT Files

I need to be able to download a .bat file from a HTML page, but when I click the link it just displays it in the window.
I'm using the standard <a href="file.bat">??</a> link.
Any ideas?
0
mobiusweb
Asked:
mobiusweb
  • 3
  • 3
  • 2
  • +1
1 Solution
 
sybeCommented:
right click on the link and choose "save link as"
0
 
mobiuswebAuthor Commented:
Sorry, I phrased the question wrongly, I need to be able to run the program from its current location.
(Its on a company Intranet, all computers using Netscape)
0
 
sybeCommented:
Where do you want to run it, on the clients or on the server ?
What version of Netscape ?
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
mobiuswebAuthor Commented:
Some are using 3.01 others using communicator.
I need the .bat to run on the clients computer, but I don't want to download it, for example, if the .bat has a reference to C: in it, I would like it to be the C: on the client computer.

0
 
sybeCommented:
Seems hard to make it run in any circumstance. Browsers are not really designed for this. You'll have to bypass security, but that depends on the users if they let you. A batch file is not the easiest thing to bypass security. Better is java or an exe.
0
 
j_powersCommented:
Have the same problem here with .reg files. We end up right-clicking, and opening.

Try this instead. Make a shortcut to the BAT file from a shared directory, then put in

<a href"file://{drive}:\{shortcut to file}.bat">batfile</a>

Let me know what happens.
0
 
OttaCommented:
Netscape -> Options -> General Preferences -> Helpers
and then add a definition for '.BAT' files,
i.e., "launch the application".
0
 
mobiuswebAuthor Commented:
I really don;t want the users fiddling with Netscape setting, we have over 10,000 people spread over 3 sites, and more computers than that.
I'm closing the question. I'll find a way to send the update via SDS
0
 
OttaCommented:
I seem to remember a BAT-to-EXE conversion program.
So, if you converted your BAT file,
and the users downloaded an EXE file,
would it "launch" automatically?
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

  • 3
  • 3
  • 2
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now