I can open WordPad directly (Start, Run...), then open
a document & click File, Send... Out goes the email
without a hitch.
However, if I open WordPad from Access this way...
Sub Button1_Click ()
x = Shell("c:\windo ws\system32\dll cache\WordPad.e xe ", 1)
SendKeys "%FOc:\cr\docs\ packets\ntroltt r.rtf~", False
End Sub
.... I get an error if I click File, Send...
I've tried removing the Q330994 security patch for Outlook
Express, but that did not result in any noticeable difference.
Ideas anyone? 3 4389
On Wed, 17 Sep 2003 00:04:58 +0100, Trevor Best <bouncer@localh ost>
wrote: I can open WordPad directly (Start, Run...), then open a document & click File, Send... Out goes the email without a hitch.
However, if I open WordPad from Access this way...
Sub Button1_Click () x = Shell("c:\windo ws\system32\dll cache\WordPad.e xe ", 1)
You might want to try "C:\Program Files\Windows NT\Accessories \wordpad.exe" since the one you're pointing at is a backup used by windows for system file protection.
SendKeys "%FOc:\cr\docs\ packets\ntroltt r.rtf~", False End Sub
Also you should be able to append the filename to the shell call, e.g.
x = Shell("C:\Progr am Files\Windows NT\Accessories\ wordpad.exe c:\cr\docs\pac kets\ntrolttr.r tf", 1)
I tried the syntax with the filename & it puked. So, I used the same
syntax (C:\Program Files\Windows NT\Accessories\ wordpad.exe
c:\cr\docs\pack ets\ntrolttr.rt f) clicking Start, Run... XP returned an
error saying... "Windows cannot find C:\Program"
The following syntax works fine though... Start, Run...
C:\Program Files\Windows NT\Accessories\ wordpad.exe
I just don't enjoy the luxury of passing the path 'n filespec to
WordPad. Too bad. Maybe there's a workaround. Thx for the
suggestion! I tried the syntax with the filename & it puked. So, I used the same syntax (C:\Program Files\Windows NT\Accessories\ wordpad.exe c:\cr\docs\pac kets\ntrolttr.r tf) clicking Start, Run... XP returned an error saying... "Windows cannot find C:\Program"
The following syntax works fine though... Start, Run... C:\Program Files\Windows NT\Accessories\ wordpad.exe I just don't enjoy the luxury of passing the path 'n filespec to WordPad. Too bad. Maybe there's a workaround. Thx for the suggestion!
xxxxxxxxxxxxxxx xxxxxxxxxx
I think I'll just put a copy of WordPad in C:\Windows and get rid
of the whole spaces in DIRnames & FILEnames issue. That ought
to do it. I think I'll just put a copy of WordPad in C:\Windows and get rid of the whole spaces in DIRnames & FILEnames issue. That ought to do it.
That did it. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: J Bunton |
last post by:
ShellStr = "C:\temp\wzzip " & ZipOptions & " " & ZipTo & " " & ZipFrom
ShellRet=Shell(ShellStr)
.. . . . . .
msgbox "Done"
How can I determin whether the Shelled process is still running.
|
by: Maya |
last post by:
Hey, there!
I'm new to vb.net and it seems I wouldn't be able to solve this
without help.
I have a pipe delimited file that has to be saved in txt format
so it could be accepted by my DTS package.
If I open and save the file manualy in Wordpad - it works.
(not in Notepad otherwise formatting is changed and DTS package
won't accept it.)
|
by: MLH |
last post by:
Where would I go to find a list of the possible return values for X
and their implication when launching..
X=Shell("C:\Windows\wordpad.exe c:\cr\docs\packets\ntrolttr.rtf", 1)
???
|
by: Mohsen Aghazadeh |
last post by:
In my application I wait for a shelled application to finish and
continue to work. Everything works fine but when the shelled program is
up and user tries to open other applications (outside of my
application) they will not be opened till the shelled program finishes.
I appreciate you help on this issue.
Thanks,
Mohsen
|
by: |
last post by:
In my application I wait for a shelled application to
finish and
continue to work. Everything works fine but when the
shelled program is
up and user tries to open other applications (outside of
my
application) they will not be opened till the shelled
program finishes.
I tested both following methods:
| |
by: Rob |
last post by:
Hi all,
I am having trouble converting the code below (found on
http://vbnet.mvps.org/index.html?code/core/sendmessage.htm) into a
format that will work using vb .NET.
Can anyone have a look at it and let me know what I need to change. I
have tried changing the "hwnd" type into intptr's but there seem to be
other problems too, like it won't allow "lParam As Any" to be
declared.
|
by: rdemyan via AccessMonster.com |
last post by:
Is there a way, in code, to move a shelled application on the screen. I've
got the shelled app to open and it centers itself. I would like to move it
to the right using code, but I don't know how. Here's the line of code I
have so far:
varAppID = Shell(strShell, vbNormalFocus)
It opens fine. Also, is there a way to open the shelled application modally,
so that the user has to deal with it immediately. The specific app that I'm...
|
by: stuart.medlin |
last post by:
I have an Access 2003 application that I recently converted from
Access 97. I have a routine in which I use to export the data that
the users have keyed into a text file. This text file resides on a
network drive where the back end database resides so that multiple
users can write to the same file. I have set up the path to the back
end (under the Link Manager) using the UNC (univ. naming convention).
When this export routine runs, I...
|
by: MegaOctet |
last post by:
Hello,
I'm trying to send some text in wordpad and here is my script:
import win32gui
import win32api
import win32con
import time
Notepad= win32gui.FindWindow(None,"Sans titre - Bloc-notes")
win32gui.SetForegroundWindow(Notepad)
editbox = win32gui.FindWindowEx(win32gui.GetDesktopWindow(),None,"Notepad",None)
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
| |
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| | |