Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Make a .BAT file on a webserver.

Status
Not open for further replies.

JeroenDortmans

Technical User
Aug 7, 2001
56
NL
I have a website with a database. From this wensite I want to start an Access database (outside the webserver) with a VBA user interface (so it is Windows based) with the right parameter so it directly will display what I want. Starting this application isn't a problem. Just call the path to the application and it will start. But the problem is starting it with the right parameter. When I make a BAT file with the path and the parameter it works. When I put this BAT file on the webserver and "run" it by selecting a link to it, it also works.
So I am thinking of developing a script that will create a BAT file on the web server. This BAT file must have the path to the application and the parameter needed to let the application display what I want in it. So the path is always the same, the parameter comes from the database on the webserver. When on the website the link to this parameter is selected the script must run.

So the BAT file must look like this:

echo off
\\IS0001\Shared_Apps\Progs\Trace2\TraceDirectView 51230/01-219
exit

After "running" the BAT file it must be deleted.

Who can help me with this script (VBS or JavaScript). It is for an Intranet environment and only IE is used.
 
Showed someone last night how to make a simple text file. You'll want to follow the same type of path, except name your "text" file .bat.

thread329-194087

There is a link at the bottom of that thread that points to devguru's fileSystemObject page, which you might want to look at for further clarification.

:)
paul
penny.gif
penny.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top