My main software application folder is here:
D:\My Programs\2017\MeetSchedAssist
And it has sourec control using TortoiseGit. But I now have an additional folder here:
C:\Users\ajtru\Documents\HelpNDoc\Templates\html\MSA HTML Template
It has to remain there because it is required by HelpNDoc in this location. Well, it does allow you to set a different location by default:
https://www.helpndoc.com/news/2014-06-03-advanced-keyword-management-and-custom-template-path-helpndoc-44
But that is not what I want to do as each of my programs will have their own templates.
So, what is the simplest way using TortoiseGit to include this external folder as part of the source control withotu constantly copying the folder? Can it be done?
You could set up a junction inside your working tree which points to the real folder.
E.g. run as Administrator:
mklink /j D:\My Programs\2017\MeetSchedAssist\fromhere C:\Users\ajtru\Documents\HelpNDoc\Templates\html\MSA HTML Template\tohere
https://learn.microsoft.com/windows/desktop/FileIO/hard-links-and-junctions
Related
I have an application that can "serialize" its state as a folder with images. This folder is called, e.g., C:\Temp\MyProject.ImageExplorer and the FileSystem consists of :
C:\Temp\MyProject.ImageExplorer\Pic1.jpeg
C:\Temp\MyProject.ImageExplorer\Pic2.jpeg
...
Can I Configure Windows Explorer in a way, that a Double Click on a folder with my .ImageExplorer "extension" does not open the folder but starts my ImageExplorer.exe with the folder name as command line argument?
Can I modify the C# .Net OpenFile Selector in a way to open these "Folders" including the Filter by extension ?
You can do it but might have issues since the file type is a folder. What I would do is basically make it a uncompressed .ZIP file, You can change the extension to what ever you want so you can associate it with your application like .IZP
You can make your application setup a registry key that associates .IZP with your application and pass the path to the file in as parameter to program.exe path/to/izp/that/user/opened
You might just have to adjust the program to handle reading a container rather than a folder.
I am working on a C++ windowsform project, using visual Studio IDE.
I use CFileDialog class to ask the user to select a file to open.
It display an usual open file selection windows.
I would like the default folder displayed to be the same as the one accessed when clicked on "My computer", where the harddrives, USB drives, dvd drives etc. are displayed.
I can define default folder by writting its path tolpstrInitialDir member, but I don't find the path for such a folder. I tried "\", "explorer.exe", "", none of them gave me the expected result.
The application will be used by several users, so the solution must not include the user name in the path. i.e "C:\Documents and Settings[user]\Desktop\My Computer" may work but is not correct for my application.
Does anyone know of to define the "root" path of windows (i.e the root of C:\) ?
I searched on SO and internet but maybe I have used wrong keywords because I couldn't find appropriate content.
My Computer is a virtual shell folder that doesn't correspond to any file system directory. There's no file system path that would correspond to that location.
Fortunately, file dialogs do speak "shellese", so you can use the CLSID (not to be confused with the GUID KNOWNFOLDERID or the CSIDL) of the shell folder. Sample in C# Winforms, but really, the only important part is the ::CLSID):
var ofd = new OpenFileDialog();
ofd.InitialDirectory = "::{20D04FE0-3AEA-1069-A2D8-08002B30309D}";
ofd.ShowDialog();
Disclaimer: I couldn't find any relevant documentation for the virtual folder CLSID, or this behaviour of the File dialog. So this is most likely not contractual, and could possibly change in future versions of Windows.
In the explorer, in the search bar copy the address of
This PC
and then select the text
This PC
and paste. Normally we get the
Ce PC ":: {CLSID}"
and then just copy
:: {CLSID}
and paste it wherever we want.
Path should be: C:\Users\UserName\Desktop\Computer.lnk
I'm trying to share a folder in my machine that is not inside the dropbox folder.
On my Mac i did that using symbolic links:
cd ˜/Dropbox
ln -s {folder i want to share} {link name}
It really works very well, but I'm trying to do the same on a Windows PC.
Does anyone know how to do that?
Just creating a plain shortcut does not work.
I also tried to create a symbolic link using "mklink /D" and it did not work either. :-(
Also tried Sysinternals Junction and no success.
Thanks,
Ecil
PS: Junction creates a folder inside Dropbox folder with the same contents as the linked folder and synchronizes to other devices, but as soon as I make an update to any of the files in the linked folder (or add a new one) it does not reflect these changes to other devices/computers.
How I can find path to bookmarks folder in firefox. My disk is pluged via USB as an external hard disk and I want to find my bookmarks and save them on my notebook.
First set:
(show hidden files and folders) and then go to:
E:\Users[username]\AppData\Roaming\Mozilla\Firefox\Profiles\ls6pqqyi.default\bookmarkbackups
inside json file is bookmarks address. Use Ctrl+F to find.
I don't know the actual folder where it stores. But I can give an idea to solve your problem.
There is one tool called "MozBackup.exe". You can use this tool to store all your firefox browser related information on it. Ofcourse you can restore it again using the same too.
All bookmarks are stored in a file named "places.sqlite".
In order to reach to the file go to following path:
C:\Users[YOUR_USER]\AppData\Roaming\Mozilla\Firefox\Profiles[PROFILE_FOLDER]\places.sqlite
My application creates a bunch of temporary .class files and I had been storing these files in my local application directory but I recently started storing these in appData. Everything functions fine and I even have a part of my application that creates an applet and needs to copy these .class files to make the applet and the applet works fine but for some reason the .class files are not showing up in AppData. I searched for the .class files (with everything enables hidden files et al) and the only place they show up are in the applet I created. This seems impossible that this could be happening unless somehow things stored in AppData are hidden or there is some sort of virtual folder at work here. I have tried this on both XP and windows seven. Any ideas?
Have your application spit out (debug print, message box, however) the absolute path to where it is writing the files.
Windows XP search function is rather crippled by default and it will not find files in many locations including folders that it considers temporary, hidden, system or non indexed, as well as several specific folders in the user profile.
A quick way to do a 'useful' search is from the command line from within your profile directory:
dir /s /b | find ".class"
No virtual folder or hiding going on that I know of. Have you verified the AppData location on your machine? WindowsKey-R (or Start -> Run) then type %appdata% and see what comes up.