I have a download folder that is the destination for all torrent download files. I want a script which monitors that folder and then automatically only copy, moves the complete folder containing the movie file (mkv,avi,mp4...etc) and ignores everything else in the download folder. Is it possible
Thanks and Regards
Sammy
Which scripting language would you like to use? What OS are you on? It is quite possible, and if you chose Python as your scripting language, you would be able to find many useful scripts that do what you want.
Related
I'm struggling to find any method that works with current Unity.
This for a conventional Windows build (not a Windows Universal via VS).
So, there's the separate data, dll, etc files of a build: how to create a civilian-usable "single exe" for Windows, with current Unity??
As said afaik this was actually always the case.
See e.g. Windows standalone Player build binaries to see a list of resulting output of a build. It exists back until version 2017.2.
So the short answer is:
It is how it is. You will always get multiple files and the data folder as output.
What you can do however is using a pack tool which simply packs all your folder content into one single exe file.
One example is Appacker
=>
BUT unfortunately there is one known issue: Windows Defender recognizes it and every exe created with it as malware. The reason for that is actually mentioned by the author in the link
Spoiler: A self-extracting .exe file? Windows Defender hates that trick!
So either with this tool or any similar one there is no real way around that except you need to trust the tool and your users need to trust you ^^
(The icon is also only used for the process window, not for the exe file itself ^^)
The long and correct way would probably be to create an actual installer for your final app which is then allowed to extract all the files to a certain location.
So in the end the user anyway will again have an exe and according data and dll files e.g. in the Programs folder but get a registered shortcut to the Start Menu which is just how any other application on Windows usually works like.
Just to add to the answer.
In 2020 if it's a game you should just use Steam. Making auto-update way easier for your users.
https://partner.steamgames.com/doc/gettingstarted
I'm trying to publish my game on itch using butler but I cant see how to generate an actual standalone windows executable rather than the default game exe, unityplayer.dll and _data folder.
I can zip all the required and upload that for the itch web store, but the itch windows app doesn't support these.
you can make an installer into a seperate exe, or just self extracting zip file, but data folder and unity.dll are parts of the engine, as far as I know you need them present
Even shipping games work this way; for example, I checked my Steam folder, and there's a ton of unityplayer.dll and data folders.
3/02/2019 12:57 <DIR> steam_shader_cache
6/06/2018 21:25 <DIR> ArizonaSunshine_Data
5/25/2018 2:50 <DIR> MonoBleedingEdge
5/25/2018 2:31 22,281,152 UnityPlayer.dll
5/25/2018 2:31 1,426,880 UnityCrashHandler64.exe
5/25/2018 2:29 648,704 ArizonaSunshine.exe
6/26/2017 20:27 <DIR> _CommonRedist
I know why you want to do this, I'm assuming to hide the fact you're using Unity, and to make everything 'simple' for people to run. The former is tough, the latter is absolutely required. I sent a .zip file to a friend who swore that he had unzipped the file and put it on his desktop. The "myapp.exe" kept asking for Unity and a license.
He was double-clicking on the .exe inside the .zip file, which looks like a folder on Vanilla Windows.
So, after having said that, I highly recommend using a real installer program.
A "real" installer, like http://www.jrsoftware.org/isinfo.php, will make it easier for people to just load your program like a 'real' program, and hide the .dll file and associated mess.
I am building an app for windows store and I need some default and example data to be in the localstate folder (Windows.Storage.ApplicationData.current.localFolder) when the app run the first time.
The folder and files structure is a bit complex and I tryed to copy the files at the start of the application, but I can't manage that way.
Is it possible to have files being copied automatically from the installation folder to the localstate folder during the store app installation?
Unfortunately, customization of the app install process isn't currently supported. You have to do this as part of your first run processing.
One possibility is that you include the data in your package as a .ZIP or other compressed file and use an appropriate library to expand that file into a folder structure on startup. That could simplify your logic considerably. (I don't have a library to recommend; it's just an idea.)
Is there a way to make Progress Developer Studio 3.7 (Eclipse) generate all the wrx files (from the ocx) and place them in for example the rcode folder?
Clarification:
I dont know even how to make one wrx file. Have heard this "They get automatically created as soon as you drop an OCX control onto an ABL frame". But if you have removed that file, can you create it anew without having to redrop the control? And how do you automatically place it in a certain folder?
wrx files contain the properties of an ActiveX you set in the appbuilder.
If you loose the wrx, those properties revert back to default values. You should check-in the wrx files into your version control system together with the source .
To copy the wrx to the rcode directory I use robocopy.
suppose your sources are in a directory named src then you can copy them using
robocopy src rcode *.wrx /s
The wrx-file is generated when compiling in the AppBuilder.
See this entry in the Progress Knowledge base
I am currently coding with Eclipse PDT, and I need to synchronise the files on my workstation with the files on the FTP server.
I've installed RSE, but I can only download and edit files as far as I can see it. What I want to happen is when I hit save, the file is saved locally, and the file to be updated on the FTP site.
Any ideas of how I can achieve this?
Create an ant builder on your project. See this article about how to do that. The important things you should know after you read the article:
You can use Ant FTP task to
transfer the files.
You can define properties given by
the Eclipse platform to get project
root, list of changed files, change
type (add, modify, delete) and so on.
Use them wisely. You will need
project_loc, resource_loc and so on.
See picture at end to see how to get
other available variables that can be
passed to the script.
Tune your Ant script, since if it run
for each file update, then it can be
slow. If it is slow anyway, then you can create a builder plugin for eclipse, which is not so complicated. I created some before.
Be prepared, that ant script can get
not only one file as changed, but a
list.