Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
py2exe
- Page 1
Re: Cannot run exe from asp.net
Programming
Web Development
2 Weeks Ago
by lennyli
> Why your approach isn’t working > What you're trying to do is mostly blocked by modern security rules — for good reasons. Here's the breakdown: > > Running a .exe on the server > You can technically make the server launch an .exe file like Notepad, but: > > It will run in the background on the server, not visibly on…
Re: Cannot run exe from asp.net
Programming
Web Development
2 Weeks Ago
by lennyli
> > When I run the command "python server.py" on the server pc, it held for a second, then released back to the command prompt. > > So did it even give you `print("Waiting for a connection...")` ? > > Consider making your server main like this. > > if __name__ == "__main__": >…
Re: Cannot run exe from asp.net
Programming
Web Development
2 Weeks Ago
by Salem
> When I run the command "python server.py" on the server pc, it held for a second, then released back to the command prompt. So did it even give you `print("Waiting for a connection...")` ? Consider making your server main like this. if __name__ == "__main__": print('Server Begin') …
Cannot run exe from asp.net
Programming
Web Development
3 Weeks Ago
by lennyli
I have tried to read https://www.daniweb.com/programming/web-development/threads/386380/cannot-run-exe-files-in-asp-net-application but still lost in trying to achieve something. I installed the latest .net framework, and IIS on the latest updated windows 11. I wish to achieve the following: Have a webpage with a button, when pressed, it will …
Re: Cannot run exe from asp.net
Programming
Web Development
2 Weeks Ago
by Neil_brown001
Why your approach isn’t working What you're trying to do is mostly blocked by modern security rules — for good reasons. Here's the breakdown: Running a .exe on the server You can technically make the server launch an .exe file like Notepad, but: It will run in the background on the server, not visibly on the desktop. It needs special …
Re: Cannot run exe from asp.net
Programming
Web Development
3 Weeks Ago
by Salem
https://xyproblem.info/ * User wants to do X. Sometime later... > My boss just asked me to create a prototype as proof of concept. There is no specific language/tool I must use * User asks for help with Y. Initially asked... > Have a webpage with a button, when pressed, it will launch a webpage that runs a server side exe (eg, …
Re: Cannot run exe from asp.net
Programming
Web Development
3 Weeks Ago
by pritaeas
> while at the same time run the same exe on the local client pc. Not possible.
Re: Cannot run exe from asp.net
Programming
Web Development
3 Weeks Ago
by lennyli
Why does the following code dont run and launch the exe I specify (eg, notepad.exe, or ribbons.scr)? <%@ Language="VBScript" %> <!DOCTYPE html> <html> <Body> <% Dim objShell Dim command Dim result ' Path to the executable command = "C:\…
Re: Cannot run exe from asp.net
Programming
Web Development
3 Weeks Ago
by pritaeas
No, Javascript cannot run/start executables on the client machine.
Re: Cannot run exe from asp.net
Programming
Web Development
3 Weeks Ago
by rproffitt
I see pritaeas has answered so I'll move to the next stage of the discussion which is to ask what you need in your web site. For example there is an "online notepad" which does some basic notepad work. And there are many screensavers that run from a webpage with an example at whitescreen.online . You can get there.
Re: Cannot run exe from asp.net
Programming
Web Development
3 Weeks Ago
by pritaeas
Are you sure IIS is configured to allow running external scripts?
Re: Cannot run exe from asp.net
Programming
Web Development
3 Weeks Ago
by lennyli
> Are you sure IIS is configured to allow running external scripts? The document folder and asp file has security permission set to ALL rights for 'everyone'. In IIS, under handler mappings for .asp files, under request restriction/access, script was chosen (not execute) for feature permissions, all 'read' 'script' 'execute' are chosen
Re: Cannot run exe from asp.net
Programming
Web Development
3 Weeks Ago
by lennyli
> I see pritaeas has answered so I'll move to the next stage of the discussion which is to ask what you need in your web site. > > For example there is an "online notepad" which does some basic notepad work. And there are many screensavers that run from a webpage with an example at whitescreen.online . > > You can …
Re: Cannot run exe from asp.net
Programming
Web Development
3 Weeks Ago
by john_111
Let me expand on what rproffitt said, by explaining why. If a webpage could run a program installed on another computer, the entire world wide web would be hacked into tiny pieces and cease to exist. No one would ever use the web, it would be so totally insecure. So web pages are prohibited from running programs on your computer. They can …
Re: Cannot run exe from asp.net
Programming
Web Development
3 Weeks Ago
by Reverend Jim
>No, Javascript cannot run/start executables on the client machine. Technically correct but there are ways around it. For example, save a file in a special folder on the target computer, which has a folder watch on that folder. The watching task could then trigger a local task.
Re: Cannot run exe from asp.net
Programming
Web Development
2 Weeks Ago
by gediminas.bukauskas.7
Pritaeas answered the question: normal WEB security settings forbids launching executables on a client machine. The only legal workaround is to create windows service (daemon in Linux environment), install it on client machine and listen for some commands coming from server over WEB sockets.
Re: Cannot run exe from asp.net
Programming
Web Development
2 Weeks Ago
by lennyli
> Pritaeas answered the question: normal WEB security settings forbids launching executables on a client machine. The only legal workaround is to create windows service (daemon in Linux environment), install it on client machine and listen for some commands coming from server over WEB sockets. Sure, I understand, but for my above new …
Re: Cannot run exe from asp.net
Programming
Web Development
2 Weeks Ago
by lennyli
I fixed the problem by ensuring the path is including python. Also on the server I must run pip install Thank you all All working now
Re: Cannot run exe from asp.net
Programming
Web Development
2 Weeks Ago
by Salem
Congrats on getting going. > Even if i run the setup and ticked the option "add to path", the echo %PATH% command didnt seem to show what i expected. Yeah, this won't transform the PATH of any existing process. In increasing annoyance order, you may have to: 1. Start a new cmd window 2. Log out and log in again 3. Reboot …
Re: Problem with MS Office shortcut bar
Hardware and Software
Microsoft Windows
2 Weeks Ago
by asadalikhan
Nick, this issue sounds like a file association problem. Your URL shortcuts on the shortcut bar are likely opening with the wrong program (like a printer handler). Here’s a quick fix: 1. Go to Control Panel > Folder Options > File Types 2. Find and select .URL 3. Click Advanced and ensure it’s set to open with Internet Explorer (…
Need currency pound symbol before amount calculation
Programming
Web Development
2 Months Ago
by ianhaneybs
I need to display a pound currency symbol before the amount that is calculated Below is the code I currently have <th class="text-right py-1 px-2 grand-total">0</th> function calc(){ var grand_total = 0; $('table#list tbody input[name="total[]"]').each(…
Re: Need currency pound symbol before amount calculation
Programming
Web Development
2 Months Ago
by Salem
https://stackoverflow.com/questions/44969852/javascript-number-tolocalestring-currency-without-currency-sign Maybe use style 'currency' rather than style 'decimal' ?
Re: Need currency pound symbol before amount calculation
Programming
Web Development
2 Months Ago
by Dani
Yes, but you might want to also add `currency: 'GBP'`, as so: $('table#list tfoot .grand-total').text(parseFloat(grand_total).toLocaleString('en-gb', { style:'currency', currency: 'GBP', maximumFractionDigit:2 }))
Re: Need currency pound symbol before amount calculation
Programming
Web Development
1 Month Ago
by Biiim
Since Dani did the best standard-correct answer I will do the botch-job answer: $('table#list tfoot .grand-total').text('£'+parseFloat(grand_total).toLocaleString('en-gb', {style:'decimal',maximumFractionDigit:2})); $('[name="amount"]').val('£'+parseFloat(grand_total)); may also want to use £ to display in …
Re: Need currency pound symbol before amount calculation
Programming
Web Development
1 Month Ago
by gediminas.bukauskas.7
JS has a function for the formatting currencies. Read the 'https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/NumberFormat' article. You will find code samples there.
Re: Need currency pound symbol before amount calculation
Programming
Web Development
1 Month Ago
by gottaloveit
[Currency.js](https://currency.js.org/) also works very well for this
Returning status from compiled PY module
Programming
Software Development
15 Years Ago
by sab73
hi, i have a python module which i compile to an EXE (using
Py2EXE
). this EXE will be called from another program which was created in C++. my Q is, how can i return an error status from my PY exe to the calling program. is there anyway i can alert the calling to an error? thanx for your interest!
.exe files not opening by double clicking in xp
Hardware and Software
Microsoft Windows
11 Years Ago
by sanbio
.exe files are not opening by double clicking in my xp sp2 anybody can help me? thanks in advance sankha
Re: exe file
Programming
Computer Science
17 Years Ago
by staneja
EXE means executable file. We can save any file as exe and it will be executed also but whatever we have written inside it will be executed For example if you save a Blank notepad file as "abc.exe" , file will be created but it wont be performing any action because nothing is written in it
Re: exe file problems
Programming
Computer Science
17 Years Ago
by Rashakil Fol
Exe files have to follow a certain format, and not every piece of machine code forms valid instructions. Yours was broken. You'd probably want to take some source code and compile it, if you want to create an exe.
1
2
3
17
Next
Last
Search
Search
Forums
Forum Index
Hardware/Software
Recommended Topics
Programming
Recommended Topics
Digital Media
Recommended Topics
Community Center
Recommended Topics
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Top Members
Meet People
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2025 DaniWeb® LLC