Click to See Complete Forum and Search --> : Need help Please
even_a_monkey
10-15-2003, 05:57 AM
Hi all,
Im looking for some help with excueting DOS commands from within a Javascript. Ive read lots of forums some saying its not possible and some saying it is. I know basically nothing of Javascript but do have other programming experience. Anyway, if someone has a spare 5 minutes and can post a template of what the script would look like it would be greatly appreciated.
Thanks
sciguyryan
10-15-2003, 07:47 AM
I can not find any evidence to say that it is possible.
With JavaScript, it is not. Perhaps with M$ ActiveX, but that only work in IE browsers, and most people have it disabled (unless it is signed), as that is the default setting in IE.
even_a_monkey
10-15-2003, 09:27 AM
I cant believe this, not doubting you people but there must be a way around this. Anyone with anything?
Ok what about this MS ActiveX, can someone give me a template of how it would look?
Or MS Visual Basic scirpt?
Think of what you could all do to the users computer if you could execute DOS commands with JavaScript. That's why you can't... Also, I don't know any ActiveX, so you might want to try searching google.
sciguyryan
10-15-2003, 01:33 PM
Pyro, if i remember corrct it was for security and saftey they never give JavaScript that ability wasn't it?
Certainly, along with many other things. That is a large part of the reason that what you can do with JavaScript is so limited (the other, of course, is that it is only a scripting language...).
sciguyryan
10-15-2003, 02:02 PM
Yea, could you imagine?! They could access files on your hard drive, copy them, delete them - JS would be banned!