473,408 Members | 1,873 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

Visual Basic Shell() Command

risk32
98
I seem to be having a "brain fart" with the Shell() command for Visual Basic.
Either that, or what I'm trying to can't be done and I'm just a noob for trying.

Anyways, here's what I'm trying to do:
Private Sub cmdLink_Click()
Shell ("C:\Program Files\Microsoft Office\OFFICE11\POWERPNT.EXE" "lblLink4.caption")
End Sub

Here's an example of what lblLink4.caption could read:
"\\yofs13\374og\03_36AS_DUTY_DESK\Temp Duty Desk Web Page Files\AIRFIELD\JANUARY\01\01_JAN.ppt"

All I need to do is use the caption from lblLink4 as a path for the shell command. Unfortunately, I'm fairly new to VB (only 2 yrs. exp) and have no idea if this is even possible. Any help on this qould be greatly appreciated.
Mar 6 '08 #1
1 1424
Stang02GT
1,208 Expert 1GB
risk,

Welcome to the Scripts. To receive a better and more timely response to your question, post it in the respective forum. If you go to the Blue navigation bar at the top of the screen, you will see under the Forums section there is a specific forum for Visual Basic Questions, post your question in there for the best chance of it getting looked at.



Thank You!
Mar 6 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: Jim Flack | last post by:
I have a new website hosted by www.easily.co.uk which contains a mysql database (I have the initial access codes etc ). My problem is I have never used PHP or dealt with mysql before. I have tried...
1
by: Tom Rahav | last post by:
Hello all! I develop application in Visual Basic .NET and ORACLE database. My question is how do I "send" script file to the database using visual basic .net. Other words, is there any way to...
2
by: JOSE RIVAS | last post by:
HI PLEASE HELP Im making a program, that makes a process (OCR process) so i reach to automate it in order to open a file ("c:\image.bmp") and then executes the ocr process ok.. it is working...
2
by: Robert Mileski | last post by:
I've made some program in Visual Basic 2005 that works with changing files and folders. After I've finished it, the main problem is to refresh the Windows OS. I mean the same thing as when we press...
0
by: MirkoGeest | last post by:
(Webmaster: sorry, I posted this first at the General Software Engineering category, but I think this goes here) I'm using Visual Basic with Web Forms on .NET 2003 and I'm experiencing a very...
4
by: Faez | last post by:
Dear sir/madam, As part of my project, I need to send queries from my website to Google search engine. The query needs to be send directly to the URL. Thus, need to launch internet explore from...
1
by: vai | last post by:
hi all i have created a html help file for my project which is developed using visual basic 6.0. i have used the shell.execute command as follows: Shell.Execute("Path"); it's not working.pls...
7
by: godhulirbalaka | last post by:
Hi guys, I am making a shop management program in visual basic. I want to a menu name Utiliti where Calculator, notepad, heart game, solitair game will be shown. In Utility menu I added this submenu....
2
by: Michael | last post by:
I have an on-click event, where I would like the machine to release it's IP address: Shell("ipconfig /release") Why does this not work ? What is the proper way to do this ? Thanks
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
jinu1996
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...
0
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...
0
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...
0
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...

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.