explorer

Open file with Windows' native program within C++ code

浪子不回头ぞ 提交于 2019-12-10 17:56:53
问题 My C++ program creates .png file and I need to open (view) this file right after creation - is there a way to open it as so it was opened within Windows explorer - so file wiil be opened with user's preferred program and if there are no associated programs with file's format - Windows will show dialog window in which user will be able to select any program to open that file. Crossplatform (+Linux, +MacOS, +BSD) solution will be perfect. Thanks. 回答1: On Windows, you can use the ShellExecute

How to flatten packages in eclipse?

感情迁移 提交于 2019-12-10 17:48:10
问题 I'm trying to create a flattened project hierarchy in eclipse 4.2 Juno - this is the latest version at time of writing. I've enabled Package Presentation -> Flat in Package Explorer yet this has made no difference, the view is still hierarchical. I cannot find any plugins which offer an improved package navigation experience. I simply desire the most productive configuration, i.e. a layout with no unnecessary clicking of expand/collapse arrows! Any suggestions? 回答1: Turns out the 'Flat'

Append to the default tooltip in a shell extension

蓝咒 提交于 2019-12-10 13:31:59
问题 I have a shell extension built using SharpShell. I am wondering if it is possible to append to the tooltip you see when you mouse over a file: I have read and tried to use a Shell Info Tip Handler, but the problem with this is that it overrides the entire tooltip with what you set it to, instead of giving you the ability to append a line of text to the default tooltip you normally would see, which is my desired outcome. I have a feeling this may not be supported in SharpShell, as a result, it

跨平台图表控件TeeChart使用教程:将图表数据导出为XML格式

岁酱吖の 提交于 2019-12-10 05:04:31
在开发者使用 TeeChart 进行开发的过程中,不管是在设计时或者运行时都可以使用的图表导出对话框将图表数据轻易地导出为XML格式: 上图为TeeChart导出对话框的数据选项 在这个对话框中可以选导出哪一列数据(或“all”导出所有列),以及是否想导出point indexes (0,1,2... ), point texts (labels)或者是colors。"Copy"按钮生成XML文本并将它复制到Windows或Linux剪贴板。"Save"按钮创建一个新的XML文件。XML文件可以被打开,例如,使用Internet Explorer浏览器。 TeeChart提供了一个类导出XML格式的数据。这个类位于TeeStore.pas unit,它的名字叫TSeriesDataXML。 保存文件的示例代码 1 2 3 4 5 6 7 8 Uses TeeStore; with TSeriesDataXML.Create(Chart1, Series1) do try SaveToFile('c:sample.xml'); finally Free; end; 如果需要导出Chart1中的所有数据,使用Create constructor构造函数最后一个函数中的"nil"替代Series1。这个类还提供了一个函数来获取XML输出成一个字符串: 1 2 3 4 5 6 7 var

Open up windows explorer in java

*爱你&永不变心* 提交于 2019-12-10 04:30:24
问题 I have been looking for an answer to this on Stack Overflow, but I couldn't find an answer that worked for me. Using Java, how do I create a button that will launch an Explorer Window to a specified directory? If this is possible, how do I make it work for OSX and Linux? 回答1: I am not sure how it works in other OS but in Windows you can use something like this Desktop.getDesktop().open(new File("c:\\")); Edit Found another way (check link to FileExplorer class from that answer). Also you can

HTML file:// links : open in explorer from Chrome

拟墨画扇 提交于 2019-12-10 00:58:51
问题 I have an html file with links like that : <a href="N:\folder1\folder2">folder name</a> I would like that this link opens explorer instead of a custome chrome file html based browser. This works from IE btw. Thank you ! Nicolas. 回答1: For Chrome , Safari and Opera this isn't possible due to their security model. However, there is somewhat of a solution for Chrome in that it's possible but it has two requirements: You need to get the user to install this Chrome extension It must be over https:/

How to get F# scripts files and other script languages to work like .exe, .cmd, and .bat files in Windows

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-09 23:39:32
问题 It is possible to configure F# script files so that they may be invoked directly without directly specifying the script runner application and their file extension, and made accessible through the command PATH environment variable. The steps to do so are as follows: Set the particular script engine as the default "open with" program for the script file type extension using Windows Explorer Appended the script extension to the PathExt environment variable, which will classify it as executable

How to open a file browser and select a .pdf file in ios

早过忘川 提交于 2019-12-09 21:31:29
问题 How to open a file browser when a button is tapped in my application in iphone.It has to show the files with an extension of .pdf format.And it has to be saved to a local database.For example,if we want to send an email to xyz,we attach some files if we want to send files.If we click attach a file button,it will show the file explorer.In the same manner the file explorer has to be opened if the user clicks a button in iphone.Please help me out of this. 回答1: I did something similar with my IOS

Path with no slash after drive letter and colon - what does it point to?

☆樱花仙子☆ 提交于 2019-12-09 18:16:29
问题 I have mistyped a path and instead of c:\foo.txt wrote c:foo.txt . I expected it to either fail or to resolve to c:\foo.txt , but instead it seems to be resolved to foo.txt in a current user's home folder. Powershell returns: PS C:\> [System.IO.Path]::GetFullPath("c:\foo.txt") c:\foo.txt PS C:\> [System.IO.Path]::GetFullPath("c:foo.txt") C:\Users\Administrator\foo.txt PS C:\> [System.IO.Path]::GetFullPath("g:foo.txt") G:\foo.txt Running explorer.exe from commandline and passing it any of the

Process.Start() not starting the .exe file (works when run manually)

♀尐吖头ヾ 提交于 2019-12-09 14:57:59
问题 I have an .exe file that needs to be run after I create a file. The file is successfully created and I am using the following code to run the .exe file after that: ProcessStartInfo processInfo = new ProcessStartInfo(); processInfo.FileName = pathToMyExe; processInfo.ErrorDialog = true; processInfo.UseShellExecute = false; processInfo.RedirectStandardOutput = true; processInfo.RedirectStandardError = true; Process proc = Process.Start(processInfo); I also tried with a simple Process.Start