473,407 Members | 2,359 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,407 software developers and data experts.

Shell command in visual basic

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. and now i want if i click on calculator submenu then the calculator which is built in with windows will call. and another thing when the calculator will appear if i click again to the menu then it should not open again.

that mean only one calculator will open. I saw the code something Shell calculator or ...

Please help me
Nov 24 '07 #1
7 2927
lotus18
866 512MB
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. and now i want if i click on calculator submenu then the calculator which is built in with windows will call. and another thing when the calculator will appear if i click again to the menu then it should not open again.

that mean only one calculator will open. I saw the code something Shell calculator or ...

Please help me
Here's the simple algo:

If you click the calculator menu then calculator will be showed and calculator menu will be disabled. When the calculator is unloaded, enables the calculator menu. : )
Nov 24 '07 #2
debasisdas
8,127 Expert 4TB
To open calculator you need to pass the complete path of the calc.exe file to shell function.
Nov 24 '07 #3
Ali Rizwan
925 512MB
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. and now i want if i click on calculator submenu then the calculator which is built in with windows will call. and another thing when the calculator will appear if i click again to the menu then it should not open again.

that mean only one calculator will open. I saw the code something Shell calculator or ...

Please help me
What you have code to open calculator.
Hope i ll help you.
Nov 25 '07 #4
I got few reply but those not helpful please give me total solution
Nov 29 '07 #5
debasisdas
8,127 Expert 4TB
I got few reply but those not helpful please give me total solution
Kindly post the code that you have tried so far.
Nov 29 '07 #6
hariharanmca
1,977 1GB
To open calculator u need to pass the complete path of the calc.exe file to shell function.
No need for any Exe is winsystem path (system32) we can give
Expand|Select|Wrap|Line Numbers
  1. Shell("calc.exe") 
Nov 29 '07 #7
vdraceil
236 100+
No need for any Exe is winsystem path (system32) we can give
Expand|Select|Wrap|Line Numbers
  1. Shell("calc.exe") 
This opens an exe file,i agree.How do u position the exe file?what do i do if i want to make it appear at the center of the sreen?
Dec 9 '07 #8

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

Similar topics

6
by: Steen Gellett | last post by:
How can I make a program halt, so when shell command is finished my program continues, but as long as the shell is running it must be on "hold" ??
9
by: Amjad | last post by:
I'm trying to create a folder, append text file to another, and delete files using the "Shell" command. But I always get the error "File Not Found". How do I use DOS commands from Visual Basic?...
1
by: ckirby | last post by:
I've inherited an application for creating mail merges from an Access 2003 ADP that needs an overhaul. To generate the mail merge , the app uses a shell command: result = Shell(str, vbHide) ...
12
by: Dixie | last post by:
Is there a way to shell to Microsoft Word from Access and load a specific template - using VBA? dixie
5
by: bearophileHUGS | last post by:
For array.array "B" means unsigned char, and such arrays accept to be initialized from (str) strings too, this is quite useful: But it seems such capability isn't shared with the append: ...
2
by: Lee Kok Onn | last post by:
I have write the following command in visual studion visual basic 2005. shell("runas /user:admin diskpart") to set the hard disk partition. it will prompt user to type a password in dos prompt,...
4
by: Anastasios Hatzis | last post by:
I'm looking for a pattern where different client implementations can use the same commands of some fictive tool ("foo") by accessing some kind of API. Actually I have the need for such pattern for...
1
risk32
by: risk32 | last post by:
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...
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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,...
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
agi2029
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,...
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.