How to delete an auto py to exe executable file? [closed] - python-3.x

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
I have made a exe file with auto py to exe. But when I opened it I have some problems. So I decided to delete it. But when I am selecting the file and pressing SHIFT+DEL, then it would say it is open in another exe program. Can someone say a solution?Click here please

Try opening task manager, and closing all the task except the task manager itself. Then attempt the deletion.
There are some background process of the python interpreter which keep running even after the app finishes executing.
I've observed this happening with some of the IDEs (like thonny) and editors as well who sometimes won't close out the connections to the files.
That's one of the reasons we have try-finally blocks in python.

Related

How can I make a program to operate another program? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
So what I'm wanting to do is pretty lame. Anyway, what I'm wanting to do is basically make a bot that will do some specified tasks for me.
I have an emulator on my laptop that when open, operates like an Android phone, and I'm using Snapchat on it. What I have been trying to do is make it send my 'streaks' on Snapchat a picture everyday at specified times. I have tried using a Macro Recorder to do this, but the loading time varies.
My questions are:
1) What programming language should I use for this?
2) What would be the best application to use? (Like Notepad, or some other application)
Any help is appreciated :)
Have you heard of autohotkey (AHK)? It's a macro app, but also a very powerful programming language. Entire apps have been written in it.
You can also use it to control other programs.
reference:
http://ahkscript.org/

How to create my own "sudo" program? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
The community reviewed whether to reopen this question 8 months ago and left it closed:
Original close reason(s) were not resolved
Improve this question
I want to create "my own" sudo command (for my file manager/commander written in C++/OpenGL). Please help provide necessary steps and things to consider. I know it has something to do with suid bit, but that's all I know so far.
It's all about filesystem flags, and you only to ensure that:
The executable file does belongs to root
It has the suid flag in the file system (you can set it with chattr u+s).
After you'll do that, it will be executed with root permissions even when running from a regular user.
Please also note that you can get an UID which had actually ran the program by calling getuid(), while geteuid() will always evaluate to 0.
I suggest to you to download sudo command code and modify it based on your requirement

Why can one remove/rename open files in Linux? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
I learned that open files can not be removed/renamed in Windows but can be removed/renamed in Linux (by default). I think I understand the reasons of the Windows behaviour.
Now I wonder why Linux allows remame/remove of open files ? What was the design rationale behind this decision ? What are the use cases when one need it ?
the difference is that linux works on file handles rather than file names. as long as the file handle is valid you can read and write to it.
renaming a file in linux does not alter the file handle.
one very interesting use case is to delete temp files after opening them.
this makes it impossible for every other process to access this file, while the process that owns the file handle can still read and write.

How to read an excel file in go? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I'm new on the go lang.I want to read an excel file for procees it later, but I don't know how to read the file in go? Anyone can show me an example ?
I haven't tried it but there's an xlsx package.
Install it with
go get -v github.com/tealeg/xlsx
Read the documentation and come back here with some code you've tried if you get stuck.
The go-ole package looks like a way to go if you want to drive an Excel process via COM to read your file.

Ability to click on filenames in cygwin console to launch file [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
iTerm for the mac has an awesome feature which allows you to ctrl-click on a filename in the terminal. (i.e. from an ls or find etc), and the terminal will attempt to launch that file using the default application for the given file's type.
I'm familiar with various ways of opening a file from cygwin using a command, but am more interested if anyone knows of a method to mouse click to open a file.
Was wondering if anyone has seen/used such a feature in cygwin/putty?
This is implemented in the Mintty terminal along with a lot of other nice features so use that instead of the default cygwin one, you should already have it, if you don't download it from here.

Resources