executable

How can I run a program or batch file on the client side?

心不动则不痛 提交于 2019-11-26 05:56:50
问题 How can I run a batch file on the client side? An exe file? Just to open pre-installed program in client side? [Edit] Regarding ActiveX, I tried var activeXObj = new ActiveXObject(\"Shell.Application\"); activeXObj.ShellExecute(\"C:\\\\WINDOWS\\\\NOTEPAD.EXE\", \"\", \"\", \"open\", \"1\"); but this doesn\'t work. Any suggestions? 回答1: From Javascript? You can't. It's a security risk. Think about it - would you want every website to be able to run programs on your PC? 回答2: You mean launch an

How to find out which version of the .NET Framework an executable needs to run?

时光怂恿深爱的人放手 提交于 2019-11-26 05:53:55
问题 I\'ve got an executable file, and I would like to know which versions of the .NET framework this file needs to be started. Is there an easy way to find this information somewhere? (So far I tried ILDASM and DUMPBIN without any luck.) 回答1: I think the closest you can reliably get is to determine what version of the CLR is required. You can do this by using ILDASM and looking at the "MANIFEST" node or Reflector and looking at the dissasembly view of the "Application.exe" node as IL. In both

How to build an executable for Android shell

ⅰ亾dé卋堺 提交于 2019-11-26 04:52:58
Sometimes I need to run a command or script on my device, but they are not available or don't exist. Can we add some additional commands to Android device's shell , except those commands that are already available on it? For example, add screenrecord command to my device (my device has Android API lower than 19), which this is unavailable on it. I know how to get the list of available commands on the device with adb shell adb shell ls /system/bin but I want to add more custom commands and scripts, to do some special and work. Is there any way to do it? Or it's impossible? The answer provides a

Determining application path in a Python EXE generated by pyInstaller

半世苍凉 提交于 2019-11-26 03:35:21
问题 I have an application that resides in a single .py file. I\'ve been able to get pyInstaller to bundle it successfully into an EXE for Windows. The problem is, the application requires a .cfg file that always sits directly beside the application in the same directory. Normally, I build the path using the following code: import os config_name = \'myapp.cfg\' config_path = os.path.join(sys.path[0], config_name) However, it seems the sys.path is blank when its called from an EXE generated by

Embed a JRE in a Windows executable?

好久不见. 提交于 2019-11-26 03:33:42
问题 Suppose I want to distribute a Java application. Suppose I want to distribute it as a single executable. I could easily build a .jar with both the application and all its external dependencies in a single file (with some Ant hacking). Now suppose I want to distribute it as an .exe file on Windows. That\'s easy enough, given the nice tools out there (such as Launch4j and the likes). But suppose now that I also don\'t want to depend on the end user having the right JRE (or any JRE at all for

How do I create executable Java program? [duplicate]

纵然是瞬间 提交于 2019-11-26 03:27:44
问题 This question already has answers here : How can I convert my Java program to an .exe file? [closed] (13 answers) Closed 4 years ago . I have programmed a Java Program in JCreator, everything is done, but I want to create an executable file from it, ie I dont want to have to run the program by loading the java classes and compiling then executing, but instead have it as a stand alone executable file. What the quickest way to do this? 回答1: You can use the jar tool bundled with the SDK and

Start an external application from a Google Chrome Extension?

安稳与你 提交于 2019-11-26 03:06:26
问题 How to start an external application from a Google Chrome Extension? So basically I have an executable file which does the job when you launch it. I need to be able to start it without a window (it is a console application) and pass the current URL to it in an argument, 回答1: Previously, you would do this through NPAPI plugins. However, Google is now phasing out NPAPI for Chrome, so the preferred way to do this is using the native messaging API. The external application would have to register

How to compile python script to binary executable

♀尐吖头ヾ 提交于 2019-11-26 03:04:34
问题 I need to convert a Python script to a Windows executable. I have Python 2.6 installed to python26 . I have created one script and kept it in C:\\pythonscript . Inside this folder there are two files Setup.py and oldlogs.py (this file need coversion) setup.py code is from distutils.core import setup import py2exe setup(console=[\'oldlogs.py\']) How can I convert oldlogs.py to an exe file? 回答1: Or use PyInstaller as an alternative to py2exe. Here is a good starting point. PyInstaller let's you

R.exe, Rcmd.exe, Rscript.exe and Rterm.exe: what's the difference?

徘徊边缘 提交于 2019-11-26 02:41:35
问题 I\'m struggling with the different R executables. What exactly is the difference between R.exe (with or without CMD BATCH option), Rcmd.exe, Rscript.exe and Rterm.exe when running command line in a batch file? And what is the difference between: R.exe --no-environ --no-save < \"c:\\temp\\R\\test.R\" > \"c:\\temp\\R\\out.txt\" 2>&1 and R.exe CMD BATCH --no-environ --no-save \"c:\\temp\\R\\test.R\" \"c:\\temp\\R\\out.txt\" No difference in the output. I cannot find anything about Rcmd.exe and

How to build an executable for Android shell

我怕爱的太早我们不能终老 提交于 2019-11-26 01:08:47
问题 Sometimes I need to run a command or script on my device, but they are not available or don\'t exist. Can we add some additional commands to Android device\'s shell , except those commands that are already available on it? For example, add screenrecord command to my device (my device has Android API lower than 19), which this is unavailable on it. I know how to get the list of available commands on the device with adb shell adb shell ls /system/bin but I want to add more custom commands and