Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1.03 Neutralino.os.runCommand broken in Windows #25

Closed
limenleap opened this issue Aug 9, 2018 · 5 comments
Closed

1.03 Neutralino.os.runCommand broken in Windows #25

limenleap opened this issue Aug 9, 2018 · 5 comments
Labels
bug Something isn't working

Comments

@limenleap
Copy link

Hi
I was developing a Neutralino application using the earlier one (1.0 beta) and things were fine; but in the current version (1.0.3.Alpha) Neutralino.os.runCommand in Windows is simply not working.

I looked in the Ajax code that you are using to send a POST request to your server's end point; and I suspect that possibly it is asking for some Basic Authentication -- I don't know whether that is the issue (If so please let me know how to get that Basic auth correct)

I liked this approach to develop apps and I am sure lots of apps would be done with this. However, I would appreciate if you can let me know what exactly I should do to get the runCommand to work. A small example would help

Great work, nevertheless!

@limenleap
Copy link
Author

I got it to work. I had not copied over the new assets/neutralino.js but even here, I find that it is not executing batch files as before... still exploring now

@limenleap
Copy link
Author

Execution of external programs is giving odd issues
A) the CMD window is now getting displayed (I guess the server is now executing the external process with the window visible)
B) In my earlier batch file I had a line which said this

@echo off
@set /P aaa<test.txt

... etc

In this version when I execute the batch file; it simply breaks the @echo off and spews out the entire contents of the batch file too. I don't know where the problem is -- possibly some quirkyness of windows batch files combined with the way the external process is called

@shalithasuranga
Copy link
Member

Neutralino.os.runCommand() shows command prompt window and blinks. We will look this problem. Thanks for reporting the issue

@shalithasuranga shalithasuranga added the bug Something isn't working label Aug 10, 2018
@shalithasuranga shalithasuranga added this to the next-release milestone Aug 10, 2018
@shalithasuranga
Copy link
Member

This needs to be fixed in next release.

@shalithasuranga
Copy link
Member

Fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants