|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Right im creating an application to load exe's but I have a problem
I have 2 forms Menu Admin The menu has links to open applications such as notepad using images. The Admin Page should contain text box's to enter a command line for an image on menu to use So same img1 uses the command line notepad.exe and an admin wanted to change that to paint.exe then he could just change the command line (textbox called img1cmd) on the admin page to change it. Is there anyway possible to do this? Or am I going the wrong way around this. Please Help |
|
#2
|
|||
|
|||
|
What do you have coded so far?
Visit www.mvps.org and you might find some existing code that addresses your situation, it's an excellent site with an excellent VB section.
__________________
====== Doug G ====== I didn't attend the funeral, but I sent a nice letter saying I approved of it. --Mark Twain |
|
#3
|
|||
|
|||
|
Code:
Private Sub game1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles game1.Click
Dim p As New System.Diagnostics.Process
p.StartInfo.FileName = "notepad.exe" <--- I need to change
p.Start()
End Sub
I have point out my "notepad.exe" this needs to change using a textbox in my admin page Sorry such a newb. Only done some simple stuff in VB before. |
|
#4
|
|||
|
|||
|
I am creating this for a "games cafe" which users come in to play games across a LAN. I want the user to be able to just press an icon and it to launch a game. The problem is if they change a location of the .exe file I want an admin to change the cmd path to the new .exe
Also I would like a timer to count how many minutes they have been using the pc so they can be charged for how long they have been using it. I plan to disable the close button or deactivate it for normal users. |
|
#5
|
|||
|
|||
|
A "games cafe" in VB hardly qualifies as "simple".
Put the desired path in a global variable or class property. In the snip you posted, use that variable content instead of "notepad.exe" |
|
#6
|
|||
|
|||
|
Quote:
I didn't say it was simple, I said I had only done some simple stuff before. What's a global variable/class property? I don't understand sorry. But will have a mess around tomorrow when I have chance. |
|
#7
|
|||
|
|||
|
Quote:
|
|
#8
|
|||
|
|||
|
Quote:
Yeah I need to you recommend any websites or books? |
|
#9
|
|||
|
|||
|
Quote:
|
![]() |
| Viewing: ASP Free Forums > Programming > Visual Basic Programming > Cmd lines |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|