wordpad

VBscript - “The system cannot find the file specified”

假装没事ソ 提交于 2019-12-23 16:43:53
问题 I'm trying to write a short VBScript, which opens "calc.exe" and "wordpad.exe". Well the problem is that VBScript won't let me open "wordpad.exe". I've tried to run the script as an admin, but this doesn't helped. My Script looks like this: Set WshShell = WScript.CreateObject("WScript.Shell") WSHShell.Run "C:\Program Files\Windows NT\Accessories\wordpad.exe" WSHShell.Run "C:\Windows\System32\calc.exe" x=msgbox("Test",4096,Test) I've also tried to define the path like this: WSHShell.Run ""C:

Copying lines from Wordpad into Excel using VBA

我只是一个虾纸丫 提交于 2019-12-12 02:56:13
问题 I am writing some code where I import some files under TMX (a form of xml). I tried various options a) using the Open FileName For input, but this messes up the character encoding b) opening the file and copying the data using the msoDialog, but this return an error if the file is too large (which is often the case) and this put the data in an utterly messy manner. c) opening the file using notepad, but there are the same limitations in so far as copying the entirety of the file into Excel as

Why TFontDialog gives less fonts than Screen.Fonts?

◇◆丶佛笑我妖孽 提交于 2019-11-30 21:59:43
I am wondering why TFontDialog gives less fonts than Screen.Fonts? (For example, the Arial* font, the Comic font, etc, does not show in TFontDialog) It also seems that the font list given by TFontDialog is the same as WordPad, whereas the font list given by Screen.Fonts is basically the same as Word. Thank you very much for your insights! PS: Delphi XE, Windows 7 PS: related SO topics: Too many fonts when enumerating with EnumFontFamiliesEx function Finding System Fonts with Delphi How to use external fonts? PS: related web pages: TFontDialog to show all Fonts @ borland.newsgroups.archived

Why TFontDialog gives less fonts than Screen.Fonts?

落花浮王杯 提交于 2019-11-30 17:19:43
问题 I am wondering why TFontDialog gives less fonts than Screen.Fonts? (For example, the Arial* font, the Comic font, etc, does not show in TFontDialog) It also seems that the font list given by TFontDialog is the same as WordPad, whereas the font list given by Screen.Fonts is basically the same as Word. Thank you very much for your insights! PS: Delphi XE, Windows 7 PS: related SO topics: Too many fonts when enumerating with EnumFontFamiliesEx function Finding System Fonts with Delphi How to use