Midnight Command for selecting multiple files - mc

I'm using developer mode of windows for using mc. I know for selecting multiple files for unix system Insert key is used. But for windows how I will select multiple files.

Related

Including external folder in UWP visual studio project

I have a UWP project in Visual Studio (2015, c++) and I want to include an external folder tree of assets (e.g. images) so that when I run it in the emulator those files are available (similarly, when I build a final package I want the files with the package). The files aren't fixed (i.e. I may add/remove files at a later time)
In a regular desktop application I would simply use a post-build step and do an xcopy on the folder into the target directory. This, however, does not work for the UWP build. When I run in the emulator nothing is there (or even in the target directory).
Is there some way to add a build step to copy files (retaining directory structure) or even better a way to add an external folder reference to the project?
I know I am not the only one that does this. Most results in searches are irrelevant, others aren't dynamic, or rely on the files to be within the project's directory tree.
Use AppxPackagePayload element in your .vcxproj file:
<AppxPackagePayload Include="PathToYourImage.jpg">
<TargetPath>SubfolderInPackage\FileName.jpg</TargetPath>
</AppxPackagePayload>
Unfortunately, you'll need to reference every file your want to copy separately. I don't know if there is a way to do it for a directory.
I have a UWP project in Visual Studio (2015, c++) and I want to include an external folder tree of assets (e.g. images) so that when I run it in the emulator those files are available (similarly, when I build a final package I want the files with the package). The files aren't fixed (i.e. I may add/remove files at a later time)
From your description, I think you want to mount an external folder for your uwp app. However, not all path can be accessed directly under current file access rules.
Access to other locations is available only through a broker process. This broker process runs with the user’s full privileges, and it can use these privileges on the app’s behalf for locations the app has requested via capabilities, locations requested by the user via file pickers, etc. The StorageItem encapsulates this brokerage procedure so the app doesn’t need to deal with it directly.
As Rob said that you can access to other locations with the user’s full privileges. For more you could refer to File access permissions official documentation.

Qt specifying a location for certain application data

I am making an application in Qt. I have 2 directories, 1 for configurations, the other for program scripts.
I would like to have it say that when I build the project, it will place those directories in a certain directory.
For instance on linux:
/home/username/.project_name/configurations
/home/username/.project_name/scripts
This should also be cross platform, so on Windows and MacOS these files should be placed in the normal place where application data is stored.
Is there there a way to specify where these directories (and the files in them) should be placed? Is it an option in the project file? And which option ?
The qt resource system is used to store files within your application's executable.
You need to answer two questions:
Where do the files come from? Does your installer or package contain them, or are they in the executable proper and the application extracts them and saves them. Then the qt resource system is useful.
How to get the path you need to create your configuration directory. QDesktopServices::storageLocation(QDesktopServices::DataLocation) returns such a path in a cross-platform manner.

How does Windows know what program to open a file with?

I just noticed that when I view the .sln files on my computer, that some have a v7.1 icon, some have a v9 icon, and some have a v10 icon (depending on what version of Visual Studio created them). It appears that Windows distinguishing which files get which icons, possibly via some sort of "MIME type" for files apart from the extension.
Could I use that functionality to detect which filetype a user selects from the default MFC SaveAs dialog if two filetypes share an extension?
In case of Visual Studio, the .sln files are associated with Microsoft Visual Studio Version Selector, which, on my machine, is installed under "C:\Program Files\Common Files\microsoft shared\MSEnv\VSLauncher.exe"
This executable must parse the solution file to determine the version, and then present the right icon to explorer.
In the general case, file associations for a given file type are present in the registry, under HKEY_CLASSES_ROOT.
But in your case, I think you're just going to have to read the file contents to determine which one it is. Hopefully there's something easily distinguishable between the two.

filter information gets lost when visual studio solution is downloaded from subversion

I am uploading my visual studio solution to subversion. in my visual studion solution I have filters under which I have kept different files of the project so that it is easier for me to manage. after upload to subversion, I download the files to a different machine. when I open up the solution in the diffeerent machine I observe the the filtering information is gone and it gets kind of unmanagable.
My question is what file/files am I possible not uploading to subversion which contains the filtering information?
VS2012 I check in to SVN only the .sln file, the .vcxproj file, and the .filters file (assuming one project in the solution). I can check it out on any machine and it loads fine.
You normally get an suo file next to your solution. This file contains your personal preferences, such as what you have expanded and collapsed and so on.
You wouldn't normally check this in as different users could have different preferences - but it is possible that the behaviour you are expecting is in this file.
You could test copying that file to see if I am correct - but I don't recommend you check it in as each user would keep overwriting all other users' preferences.

How to build the project which contains the active file in visual studio?

I am using visual studio 2010. My code is in C++ and my solution contains many projects and each project again contains multiple folders under it. Whenever I change a file it gets automatically selected in solution explorer as I have enabled the option "Track Active Item in Solution Explorer" in Tools->Options->Projects and Solutions->General. But after changing the file I have to manually select the project (this could be cumbersome as I have to scroll up and down due to many files present) and then right click on it and select "build". Is there any other simple way to do this?
You could assign a shortcut to Build.BuildSelection or Build.BuildOnlyProject
Go to Tools menu, then Options=>Environment=>Keyboard and enter Build.BuildSelection or Build.BuildOnlyProject in the Show commands containing search text area. Then assign two free shortcuts. Build.BuildSelection is for building the current file; Build.BuildOnlyProject will build its project.
I use ctrl-shift+b to build all the solution. I hate to use the mouse for those repetitive tasks.