JavaScript - Shell In Unix
How can you tell what shell you are running on UNIX system?
Similar TutorialsI'm trying to add a unix timestamp into an exisiting function, but am uncertain how you add the variable. I searched the boards here, and came across this example to convert a date to unix in javascript. var date3 = new Date(Date.parse("21 May 2009 10:03:20")); And I'm trying to add it to this: Code: flashobj3.addVariable ("targetTime", $date3); Am I on the right path? I need to run an executable file located on server from client using WScript.shell Activexobject. How Can I do that? var shell = new ActiveXObject("WScript.shell"); var oExec = shell.Exec('file:///C:/TZTwain/TZTwain.exe'); The above code throws 'the file specified not found' exception. Dear friends, My Function code is: [code] <script language="javascript" type="text/javascript"> //function to create the printer and take variable from button pressed by user function RunEXE(prn) { var oShell = new ActiveXObject("WScript.Shell"); oShell.Run ("%comspec% /k c:\windows\system32\rundll32 PRINTUI.DLL,PrintUIEntry /in /n "+prn+"",2,true); } </script> the variable is passed properly to the function with spaces using below form button. But, the command in the function doesnot execute after the space, that is printer name is taken as "5E-" only. How do i pass prn variable with additional double quotes, so that command in function takes it in full including spaces. thanks so much. [code] <input name="button2132" type="button" id="button213" onClick="RunEXE('\\\\printsrv.test.com\\5E- KMC451-SS AC')" value="Install" /> |