Skip to main content

All Questions

Tagged with
0 votes
1 answer
1k views

VBScript unable to close launched IE browser after countdown

Problem I can't trigger an auto-closing of the browser that my VBS script opens: Set objShell = WScript.CreateObject("WScript.Shell") Set objWMIService = GetObject("Winmgmts:\\.\root\cimv2") Set ...
George's user avatar
  • 6,046
0 votes
3 answers
3k views

How do I end up running a batch file from vbscript?

I have a batch file that is save in a shared drive (S:) and I am trying to use vbscripts createobject method to create a shell script to run my batch file. My current vbscript is: <script language=...
user avatar
1 vote
1 answer
1k views

WScript to run exe from client PC without any popup windows, silently

My objective is to launch an .exe from client PC, from Internet Explorer, without any user interaction needed. I'm deploying in a sandbox environment so the security is not of my concern here. I've ...
Ho Chia Leung's user avatar
0 votes
2 answers
128 views

Using "Style" in a variable

At the moment, all I'm trying to do is get the style in this piece of HTML to display in a WScript.Echo popup. I cannot find the correct syntax to do this. The value I want is: "width: 0%;" (or ...
user3108489's user avatar
0 votes
0 answers
4k views

How to open and append data into excel using javascript and HTML

I would like to know how to append html input data into Excel using JavaScript. I have written code for creating excel using JavaScript with ActiveXObject please find below sample written code : <...
Vitthal Gaytonde's user avatar
0 votes
0 answers
1k views

How to open sample.txt in notepad editor (external program) directed from a hyperlink in html?

There is an html file which has the paths of various .txt files. I wish to add hyperlink to the such that on clicking on those files, they get opened in the NOTEPAD EDITOR instead of the web browser. ...
Akash Hazra's user avatar
1 vote
1 answer
76 views

trying to get javascript to execute wsh through html

I'm stuck on this code...I'm trying to get the html page to, when you click the link, call the bsd function, which should pop up a "foo" alert. My code is below. Thanks for the help! (function() {...
John Doe's user avatar
0 votes
1 answer
290 views

html code that executes wsh code through javascript

I'm stuck on this code...I'm trying to get the html page to, when you click the link, call the bms function, which should open internet explorer, go to google, and fill the search textbox with the ...
John Doe's user avatar
1 vote
1 answer
2k views

Javascript Wscript.Shell command not working by clicking button in browser

I am using this code: to create new folder by clicking a button in browser, function exer() { var wsr = WScript.CreateObject("WScript.Shell"); wsr.Exec("cmd /C mkdir C:\\users\\vakav\\...
user2823471's user avatar
0 votes
1 answer
2k views

HTA page opening the program but not running the file

After downloading all the lecture videos and other resources of a course,I wanted to make a course page for myself for easy access. And I want the video open in VLC Player. I tried the following ...
kryptoknight's user avatar
3 votes
1 answer
6k views

hta/ javascript How to execute an application with relative path

I'm building a .hta (with javascript) from which i want to launch several applications. But when i execute my .hta i get the error message can't find file this is the code: <script type="text/...
user1644062's user avatar
0 votes
2 answers
266 views

Fastest way to recursively clean HTML files on a partition?

script for cleaning HTML files i.e. delete everything after </HTML> tag (without quotes), for all files recursively in a partition. This would be like recovering Web server content after Virus ...
friends forever's user avatar
0 votes
1 answer
3k views

How do you wait for a command to finish executing in HTML Javascript

I am writing an HTML Menu (StartMenu.hta). This menu runs from a DVD, but before it can run it needs to copy a few files to the user's TEMP folder. These files have to be copied before the menu is ...
barefootcoder's user avatar
13 votes
4 answers
3k views

How to get the associated icon of a file in HTA (HTML/Javascript/VBScript)

I'm building an HTA application in which I need to display a list of file with their associated system icon. I'm using FileSystemObject to list the file but there seem to have no way to get the icon......
Patrick's user avatar
  • 131
1 vote
1 answer
9k views

How to use Wscript Exec to run a Java file

As the description of Wscript:String value indicating the command line used to run the script: The command line should appear exactly as it would if you typed it at the command prompt. I can run my ...
Camellia 's user avatar

15 30 50 per page