Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8357641
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T10:32:39+00:00 2026-06-09T10:32:39+00:00

Right now I have a website set up that links to scripts on the

  • 0

Right now I have a website set up that links to scripts on the LAN that allow me to install the many network printers that I manage.
Basically it’s just a HTML page that, very insecurely, points to a script on another part of the lan that installs it as a TCP/IP printer on the local machine.

<a href="file://server/prnt/HP3200.bat>HP 3200 (room C204)</a>
<a href="file://server/prnt/HP3200.bat>HP 3200 (room C206)</a>
<a href="file://server/prnt/DELL1500.bat>DELL 1500</a>
<a href="file://server/prnt/TOS120.bat>Toshiba 120</a>

Does anyone know how I could make this more secure and efficient?
The Linux server also hosts PHP pages so Server Side Scripting would not be an issue.
There has to be a better way for the website to manage the many IP’s, Names and Drivers of the printers. I would prefer if the website could actually install the printer somehow, instead of showing the ugly DOS window to inexperienced PC users while it grabs the .inf driver file and adds the printer.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T10:32:41+00:00Added an answer on June 9, 2026 at 10:32 am

    This really isn’t something that you can do with PHP. Everything PHP executes on the server itself, so it can’t do anything on behalf of the user in the way you want it to I think. Javascript isn’t an option as well due to security limitations that it has (It would be a VERY VERY bad thing if javascript could change these types of settings and execute code like that).

    What you are doing is pretty much as easy as it gets, short of running an SOE and having an app written to do what you want. I would suggest if you are worried about the way that these .bat scripts LOOK, pop into the code and make them more appealing – or make them look more ‘techy’. What you currently have is a clean, simple and effective way of adding a printer to a PC.

    Edit: The application was probably an msi snapin. That will be some significant coding though, all the more so if you aren’t familiar with windows programming.

    Edit 2: On re-reading your comment, you can do something like this:

    Make a .VBS file with something along these lines in it:

    Set WshShell = CreateObject("WScript.Shell")
    WshShell.Run chr(34) & "C:\Batch Files\syncfiles.bat" & Chr(34), 0
    Set WshShell = Nothing
    

    Have your webpage point to these VBS files rather than the bat files. All this will do is open the bat file in the background. Note that bat files can post important information in the text – such as “Install Successful” or “Install Failed”. If you run everything invisibly, your user can’t really tell if things worked.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a website that right now, runs by creating static html pages from
Basically, we have an ASP website right now that I'm converting to PHP. We're
So I have an MVC 2 website online right now. I set up my
Right now I have a voting system on my website that stores all votes
I have a website and right now users can just open a directory and
I'm designing a website right now, and have a menubar at the top for
Right now I have a script that will get the last five files in
Right now I have 3 tables: User, Roles, and User_Roles for the many-to-many association.
Right now I have a function, in a class that is used to listen
I'm writing a website in Silverlight 5 right now. I have a public static

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.