473,700 Members | 2,851 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

SHELLing out to WordPad?

MLH
Should this line work?

x = Shell("WordPad. exe", 1)

I get an error citing the 'file cannot
be found'???
Nov 12 '05 #1
3 4099
On Tue, 16 Sep 2003 17:54:26 -0400 in comp.databases. ms-access, MLH
<CR**@NorthStat e.net> wrote:
Should this line work?

x = Shell("WordPad. exe", 1)

I get an error citing the 'file cannot
be found'???


Because it's not on the search path?

Try:
x = Shell("C:\Progr am Files\Windows NT\Accessories\ wordpad.exe", 1)

--
A)bort, R)etry, I)nfluence with large hammer.

(replace sithlord with trevor for email)
Nov 12 '05 #2
MLH
Thx... Here's where I found it...
x = Shell("c:\windo ws\system32\dll cache\WordPad.e xe ", 1)
Nov 12 '05 #3
MLH
Thx... Here's where I found it...
x = Shell("c:\windo ws\system32\dll cache\WordPad.e xe ", 1)
Nov 12 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
2854
by: Patrick L. Nolan | last post by:
I'm trying to find a clean way to launch a Wordpad editor on Windows. By "clean", I mean that it should work on as many versions of Windows as possible, and it shouldn't require installing any extra software. I assume everyone has win32api and its friends. The problem is to find the path to wordpad.exe. At first I just copied the path from my XP machine: c:\Program Files\Windows NT\Accessories\WORDPAD.EXE
3
11262
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.)
3
4384
by: MLH | last post by:
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:\windows\system32\dllcache\WordPad.exe ", 1) SendKeys "%FOc:\cr\docs\packets\ntrolttr.rtf~", False End Sub
7
13185
by: Lumpierbritches | last post by:
Thank you in advance for any and all assistance. It is greatly appreciated. I would like a command button in VB.Net 2002 to open a text file, then to allow text from a textbox on the current form to be appended to that text file. Is there a place where I can see code to do this? I have the data/text on the clipboard using the clipboard class, now I want to append it to the text file either in Notepad or Wordpad. I have tried using the...
4
4276
by: Lorimer | last post by:
Thanks in advance for any help received. Is it possible to automatically display a text file in Wordpad using VB.NET and if so how do I do it? Thanks again L
4
4574
by: Breana | last post by:
it's a wordpad, most ppl use um and i forgot to ask last time. i tried document/wordpad but no go...
0
925
by: rupali77 | last post by:
hi i want to open my existing wordpad file on button click in vb.net for eq. if i click on button ABC tht shud allow me to open my ABC.txt file(wordpad) if i click on button XYZ tht shud allow me to open XYZ.txt directly in wordpad. help me to get above result thanks
0
976
by: phpfreak2007 | last post by:
hello everyone.. In my c# project I want to paste rtf text to wordpad from clipboard.I am using streamwriter for that. I have three richtextbox.From that I am able to paste only one rtf text to wordpad.... here is my code please help me... StreamWriter sw = new StreamWriter("wpreview.wri");
1
3044
by: vinoth124 | last post by:
Hi Friend, I need to open a "D:sam\a.wif" file in the wordpad then I need to save the same file immediately with out any updation and then I need to close it. For opening a file I used this command: Shell "C:\Program Files\Windows NT\Accessories\wordpad.exe D:sam\a.wif" Will you please help me to save the a.wif file once the above command executed. Thanks in advance
0
8638
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9202
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8909
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6555
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5894
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();...
0
4395
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...
0
4649
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3081
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
3
2018
bsmnconsultancy
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...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.