explorer

Open explorer window and wait for it to close

早过忘川 提交于 2019-12-18 08:54:40
问题 I have a program that is opening an explorer window to a certain folder but i want to perform an action right after the explorer window is closed, but if I use the following code: Process proc = Process.Start("explorer.exe", "D:\\"); proc.WaitForExit(); It is opening the explorer window as desired but the WaitForExit command has no effect and it just goes right past it. Is there a different way of opening the explorer window that will be able to let me know when it is closed by the user? 回答1:

substr() with negative value not working in IE

时间秒杀一切 提交于 2019-12-17 20:12:45
问题 EDIT:I've changed the title, because the issue had nothing to do with IE image.load() firing - my substr() wasn't working (see accepted answer). There's a ton of posts about making sure that you define your onload handler prior to assigning img.src in order to guarantee that the onload handler is in place in case the image is loaded from cache first. This does not appear to the be issue in my code, since that's precisely what I have done. Note that this script works across all other browsers,

get report of all open explorer windows

佐手、 提交于 2019-12-17 19:09:28
问题 I want to get a report of all open explorer windows titles and current paths. The current paths part of this is problem is answered here with C#, but I want this for powershell and am not sure how to adapt it. I am not sure how to bring out the window titles part of it. Could someone please assist. 回答1: Sounds to me like you're looking for something like this: $app = New-Object -COM 'Shell.Application' $app.Windows() | Select-Object LocationURL AFAICS the window objects don't have a title

How can I use a meter-style progress bar?

梦想的初衷 提交于 2019-12-17 10:54:41
问题 In Vista/7, the Windows Explorer shell window makes use of a special kind of static progress bar to display hard drive space. With default styles, this bar is blue colored and non-animated. It also turns red colored when it gets close to being full (low disk space). Using messaging, I can tell the Windows Forms ProgressBar control to update its state to Paused and Error (yellow and red colored, respectively), which works fine, but these are still specific to progress. In the Windows User

【Python学习之路】——Day14(HTML)

亡梦爱人 提交于 2019-12-17 04:59:28
概述 HTML是英文Hyper Text Mark-up Language(超文本标记语言)的缩写,他是一种制作万维网页面标准语言(标记)。相当于定义统一的一套规则,大家都来遵守他,这样就可以让浏览器根据标记语言的规则去解释它。 浏览器负责将标签翻译成用户“看得懂”的格式,呈现给用户!(例:djangomoan模版引擎) HTML文档 文档树 Doctype Doctype告诉浏览器使用什么样的html或xhtml规范来解析html文档 有和无的区别 BackCompat:标准兼容模式未开启(或叫怪异模式[Quirks mode]、混杂模式) CSS1Compat:标准兼容模式已开启(或叫严格模式[Standards mode/Strict mode]) 这个属性会被浏览器识别并使用,但是如果你的页面没有DOCTYPE的声明,那么compatMode默认就是BackCompat,这也就是恶魔的开始 -- 浏览器按照自己的方式解析渲染页面,那么,在不同的浏览器就会显示不同的样式。如果你的页面添加了那么,那么就等同于开启了标准模式,那么浏览器就得老老实实的按照W3C的标准解析渲染页面,这样一来,你的页面在所有的浏览器里显示的就都是一个样子了。 有,用什么? Doctype告诉浏览器使用什么样的html或xhtml规范来解析html文档, dtd文件则包含了标记、attributes

How add context menu item to Windows Explorer for folders [closed]

有些话、适合烂在心里 提交于 2019-12-17 02:52:52
问题 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 3 days ago . I have found out how to add right-click context menu items to files on Windows Explorer, by adding keys to the registry. I.e. I can right-click on a file in Explorer and run a custom app against that file. I would like to do the same for a folder and have not found a way to do that

宏病毒刨析

核能气质少年 提交于 2019-12-15 10:03:39
拿到宏病毒之后,先使用oledump.py工具进行宏数据流得查看: 通过查看数据流可以发现,在第八段和第九段有宏代码,同时需要注意在第十二的数据虽然没有宏代码 ,但是第12段数据大小却是很可疑需要注意一下,同时也可以将第八段和第九段以及第十二段 这三段数据dump出来 进行查看。这里采用宏病毒动态调试的方式: 打开文件之后,存在安全警告: 这个时候,可以使用快捷键 打开并且查看宏代码(alt+F11),但是打开窗口之后发现并没有宏代码,只是因为这个时候还没有启用宏,VB宏代码并没有引用,点击启用宏(这个时候宏代码已经运行),这时就可以查看文件当中的宏代码: 但是这时,查看宏代码的时候 提示要输入密码,不知道密码也就只有破解一途,用010打开该文档 搜索DPB 将之修改为DPX 之后保存。再打开文档之后,忽略错误 就可以顺利地看到宏代码了: 动态调试的过程也就不具体介绍,宏代码的主要动作如下: 1:拼接TEMP路径:C:\User\sam\AppData\Local\TEMP 2:拼接fhew.rtf路径和hrbs.rtf路径以及t2.tmp路径 3:将源DOC文件另存为fhew.rtf和hrbs.rtf 采用ActiveDocument.SaveAs 4:采用CreateObject 来执行Microsoft word 执行fhew.rtf 5:使用Shell函数 执行t2.tmp

Where is the Adobe Flex Style explorer Sample app

こ雲淡風輕ζ 提交于 2019-12-14 04:20:06
问题 I have did not checked it since a while, but now I need to maintain some old flex 2/3 code (I need to update some colors and styles). The problem is that I did had the Flex 2 Style Explorer showcase app from Adobe bookmarked, but not I cannot reach it any more. Can someone help and provide a valid link, please. Old link was http://examples.adobe.com/flex2/consulting/styleexplorer/Flex2StyleExplorer.html#/ Thanks a lot! 回答1: I have the source for the Flex 2 style Explorer, i downloaded once

How to check if explorer window is open by title in batch?

﹥>﹥吖頭↗ 提交于 2019-12-14 04:13:39
问题 How do I check if an explorer is open or not in batch? I need to take a screenshot of the directory with a file selected, but only after the window has opened. The window title is always the same. Thanks Example: REM Opening folder with a file selected START /W EXPLORER /SELECT,\\10.10.10.10\C$\ThisFolder\FileToHighlight.txt REM Unreliably waiting for window to open TIMEOUT /T 3 /NOBREAK >NUL REM Taking screenshot of window with a third-party app START .\Bin\screenshot-cmd.exe -wt "ThisFolder

Are there any use to limit yourself to HTTP1.0?

删除回忆录丶 提交于 2019-12-14 02:17:13
问题 I've been put in charge of building some tools to help end-user test why their browser might not work with a website. Among the reason I was given to why it might not work there was this "require HTTP1.1" line. I've looked through most browser options and only IE (version 6 and up, even 9 ) allow you to disable HTTP1.1. Are there any use to be able to restrict yourself to http1.0? 回答1: Generally speaking, no, you don't ever want the client to only offer HTTP/1.0, as this will slow things down