Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
 
  HOME    TRACKER    Visual Basic




Call Windows Explore Or My Computer


how can I call windows explore or my computer from just pushing a command button in my program.. pushing this button would be the same as double clicking on "my computer" on the desktop

thanks
Garrett




View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread
Open A Network Computer UNC Path In Explore
I have made a connection to a remote server via IPC$. Now I want to open the d$ share (\serverd$) in a windows explorer type window via the click of a button on my form. Any ideas....

Windows Explore Look Alike
I want to have a windows explorer look alike in my VB form.I want the code for the same.Please explain in detail what to do and the code along with it.I am not a VB expert and I am unable to decipher *.frm files.Please commnet on these at least.I would be very thankful

Close A &"Windows Explore' Window
Can a 'Windows Explorer' window be close from within VB?

Project Explore,Properties, & Form Layout Windows
If you recall, when you installed VB 6 , the Project Explore, Properties, & Form Layout Windows were on the right side of the screen. When you load a Project in DESIGN mode, and enlarged the frm or code window, it became the size of the screen minus the windows on the right. If you would close your project, those 3 windows would become in-visible.

How do you get them back to that state? Under the TOOLS menu/Options/Docking -- I have everything checked except for Object Browser.

When I go to the VIEW menu, I can click on Project Explore, Properties, or Form Layout Windows. The window will show but they are NOT docked to the right side of the screen.

Thanks,
Sam

Call Exe File From Other Networked Computer And Run It On Original Computer
Good to all to you experts! I had a hard time just to call the exe file which is actually the file that i set-up to that particular networked computer and call it from the server computer and onced it has called it will then run on the computer where it resides. thanks in advance.

Computer A Call Computer B Run A Program In Network
Hello everybody !

I have a network, I am computer A, can I write a program where the program function is call computer B in network running another program ? like notepad..etc

Thank a lot




MSN Messager ID:lkching7@msn.com

Telephone Call In Computer ???
Hi, can you help me ???
Can I listen to telephone call in computer using modem ???

Receiving A Phone Call On Your Computer!
Hi,

Has anyone hot a clue about Visual Basic 6 programs which interact with a Telephone?

I am trying to make my Computer to RECEIVE A TELEPHONE CALL, using visual basic(TAPI or any other control). If you have any ideas please do share with me. My email address is ntsugan@yahoo.com

Note: Remember its NOT TO DIAL FROM COMPUTER, BUT TO RECEIVE A TELEPHONE CALL TO YOUR COMPUTER.

Thank you!
Noel

How To Use A Fuction Call To Turn Off The Computer?
Does any one can tell me which fuction call in VB can use to turn off the computer, thanks.

Rebooting A Windows XP Computer
I would like the computer to reboot when my app is finished.
I tried using:

Code:
ExitWindowsEx EWX_FORCE Or EWX_REBOOT, 0


but this doesn't seem to work with XP.

Any thoughts?

Add Computer To Windows NT Domain
Hi all, I am trying to create a vb application which can add computer to windows NT domain. I've searched around, but no discovery, any idea? Thanks in advance!

Windows User/Computer Names From VB6?
Has anyone been so smart to write VB6 code reads Computer's Name and Window's xp user name of the system? Simply to make sure that an authorized application issued to Mr.x will be run really on Mr.x computer whose name (the computer) is given too?

Opening Windows Explorer/My Computer From CD
What's up everyone....

Have a simple question here that seems to keep my at a roadblock here. I've been trying to create a CD interface over the past week that points to a few shareware programs for installation. I want to add a browse CD function to it.

1) how do I set this up?
2) how do i have it point to a certain directory if needed?

How To Shutdown The Computer In Windows 2000
Hi,

I use the ExitWindowsEx Function to exit windows, but in windows 2000 only
works the logoff, the shutdown dont work, can someone help me?

thanks.

How To Choose The Windows OS From The Vb While Restarting The Computer
Hai VBCity Members,

              Actually in my system there are 3 windows operating system 98,xp,2000server.From XP windows operating system i am restarting the Os through vb application.

             So when i restarting from xp OS through vb application ,it should automatically re-boot on the same os XP automatically or to the specified os on that computer,where there are 3 os.


            see normally when there are more than one operating system normally user will select the operating system manually,this should happen automaticlly when we restarting through vb application it should boot on the specified OS.


           Thank You

                                                                                                L.Ganapathy

Launch Windows Computer Management
Hi I have a small VB app that I want to add a button to that when the user clicks on this it launches Windows Computer Management. Anyone know how to do this?

Thanks

How To Use VB Making Explorer As Windows's My Computer?
I was download some source codes at other's web ago, but I don't saw know so, because the codes used so much APIs, everybody help me? thanks!



Edited by - MakingDream on 6/13/2003 5:45:21 AM

Windows API Call
i want to be able to start a program (notepad in this case) from within my VB program. I put the following declaration (at end of this message) in one of my modules, but when I start my VB program, I get the following message:

"User Defined type not defined."

What am I doing wrong?
Thanks.

'Here is the function declaration.
Private Declare Function CreateProcess Lib "kernel32" Alias "CreateProcessA" (ByVal lpApplicationName As String, ByVal lpCommandLine As String, lpProcessAttributes As SECURITY_ATTRIBUTES, lpThreadAttributes As SECURITY_ATTRIBUTES, ByVal bInheritHandles As Long, ByVal dwCreationFlags As Long, lpEnvironment As Any, ByVal lpCurrentDriectory As String, lpStartupInfo As STARTUPINFO, lpProcessInformation As PROCESS_INFORMATION) As Long

Empty Recordset Returned On Windows 98 Computer
Problem: Visual Basic 6 ADO data application delivers zero records on a Windows 98 installation, yet returns a complete recordset on Windows 2000 platforms.

What follows are the VB6 PDW Setup.lst contents, and code (although it works on Windows 2000). All components on the Win98 OS are current. DCOM98 is installed, as well as MSJet4.0, and MDAC_2.8.

Many thanks for your time in reviewing this post. Have a great Thanksgiving.

Setup information:

VB6 PDW Setup.lst

[Bootstrap Files]

File1=@VB6STKIT.DLL,$(WinSysPathSysFile),,,3/25/99 11:00:00 PM,101888,6.0.84.50

File2=@COMCAT.DLL,$(WinSysPathSysFile),$(DLLSelfRegister),,6/19/03 1:05:04 PM,3856,5.0.2195.1

File3=@STDOLE2.TLB,$(WinSysPathSysFile),$(TLBRegister),,6/19/03 1:05:04 PM,16896,2.40.4522.0

File4=@ASYCFILT.DLL,$(WinSysPathSysFile),,,6/19/03 1:05:04 PM,143632,2.40.4522.0

File5=@OLEPRO32.DLL,$(WinSysPathSysFile),$(DLLSelfRegister),,6/19/03 1:05:04 PM,164112,5.0.4522.0

File6=@OLEAUT32.DLL,$(WinSysPathSysFile),$(DLLSelfRegister),,6/19/03 1:05:04 PM,626960,2.40.4522.0

File7=@msvbvm60.dll,$(WinSysPathSysFile),$(DLLSelfRegister),,2/23/04 11:42:40 AM,1386496,6.0.97.82

[Setup1 Files]

File1=@MDAC_TYP.EXE,$(WinSysPath),,,11/19/04 9:43:23 AM,5556616,28.0.1022.3

File2=@MSDERUN.DLL,$(CommonFiles)designer,$(DLLSelfRegister),$(Shared ),3/13/00 11:00:00 PM,136192,6.0.88.4

File3=@MSSTDFMT.DLL,$(WinSysPath),$(DLLSelfRegister),$(Shared),7/15/00 12:00:00 AM,118784,6.0.88.4

File4=@MSDATGRD.OCX,$(WinSysPath),$(DLLSelfRegister),$(Shared),12/5/00 11:00:00 PM,262328,6.0.89.88

File5=@MSCAL.OCX,$(WinSysPath),$(DLLSelfRegister),$(Shared),1/14/00 9:07:10 PM,111544,9.0.0.3620

File6=@EPMTimeCards.exe,$(AppPath),,,11/19/04 3:38:34 PM,32768,1.0.0.0



Caller:

Private Sub cmdRetrieveData_Click()

Dim rsEPMHours As Recordset, sSQL As String

sSQL =

SELECT tblEmployees.LastName + ', ' + tblEmployees.FirstName
AS Employee,
tblEmployees.CostCenter, SUM(tblTimeCards.TotalHours)
AS `Total Hours`,
SUM(tblTimeCards.TotalHours * tblCostCenters.CenterRate) AS Amt

FROM tblTimeCards,
tblProdClasses,
tblCostCenters,
tblEmployees,
tblTimePeriods,
tblProjects

WHERE tblTimeCards.ProdClassID = tblProdClasses.ProdClassID
AND tblTimeCards.EmpNum = tblEmployees.EmpNum
AND tblCostCenters.CostCenter = tblEmployees.CostCenter
AND tblTimeCards.WeekEndingDate = tblTimePeriods.WeekEndingDate
AND tblTimeCards.ProjectNum = tblProjects.ProjectNum
AND tblTimeCards.ProjectNum
= 'frmEPMTimeCardQuery.txtProjectNumber.Text'
AND Format(tblTimeCards.WeekEndingDate, 'm/d/yyyy')
= #frmEPMTimeCardQuery.txtWeekEndingDate.Text#

GROUP BY tblTimeCards.ProjectNum,
tblTimeCards.WeekEndingDate,
tblEmployees.CostCenter,
tblEmployees.LastName + ', ' + tblEmployees.FirstName,
tblProdClasses.PCL " & _

ORDER BY tblEmployees.LastName + ', ' + tblEmployees.FirstName"

' Test for empty criteria

If frmEPMTimeCardQuery.txtWeekEndingDate.Text = "" Then

MsgBox "Please enter a week ending date or select a date from
the Calendar", vbOKOnly, "Engineering Project Monitor"

frmEPMTimeCardQuery.txtWeekEndingDate.SetFocus

Exit Sub

End If

' Get Data

Set rsEPMHours = m_GetEPMData.GetEPMData(sSQL)

If rsEPMHours.RecordCount = 0 Then

MsgBox "There are no records matching the entered criteria.",
vbInformation, "Engineering Project Monitor"

frmEPMTimeCardQuery.txtProjectNumber.Text = ""

frmEPMTimeCardQuery.txtWeekEndingDate = ""

Set frmEPMTimeCardQuery.dbgEngHours.DataSource = Nothing

frmEPMTimeCardQuery.txtProjectNumber.SetFocus

Exit Sub

End If

' Bind the datagrid control to the recordset
Set frmEPMTimeCardQuery.dbgEngHours.DataSource = rsEPMHours

End Sub


Receiver:

Attribute VB_Name = "m_GetEPMData"

Option Explicit

Private Const
m_conConnString As String =
Provider=Microsoft.Jet.OLEDB.4.0;
Data Source=\[server path]EPM_GL_INTERFACE.mdb;
Persist Security Info=False"

Public Function GetEPMData(sSQL As String) As Recordset

'-----------------------------------------------
' Read the EPM records and populate a recordset
'-----------------------------------------------

Dim cnEPM As Connection
Dim rsEngHours As Recordset
Dim sSelectSQL As String

' Trap connection errors
On Error GoTo EH_GetEPMData

' Instantiate connection object
Set cnEPM = New Connection

sSelectSQL = sSQL

' Open a connection
With cnEPM
.Provider = "Microsoft.Jet.OLEDB.4.0"
.ConnectionString = m_conConnString
.Open
End With

' Instantiate recordset object
Set rsEngHours = New Recordset

' Populate recordset with EPM Time Card records
With rsEngHours
.CursorLocation = adUseClient
.Open sSelectSQL, cnEPM, adOpenStatic, adLockOptimistic
.ActiveConnection = Nothing
End With

' Always zero on Windows 98 computer
MsgBox "The Number of records are " & rsEngHours.RecordCount


Set GetEPMData = rsEngHours


' Close the connection and destroy the object
cnEPM.Close
Set cnEPM = Nothing


' Connection is successful so
Exit Function

' What's the connection error
EH_GetEPMData:

' Return the error to the client
Err.Raise Err.Number, "\Plyapp1EPMGLIEPM_GL_INTERFACE.mdb", Err.Description


End Function

Windows Active Directory Computer Enumeration
Hi,

I have been on to a task for Enumerating Computers in a domain.
and this is the Code which am Using for Enumeration.

The Problem is that if the Code is executed once. every thing Seems fine. there are no errors.

if i try to execute this code again
i get an Error "Automation Error ". "Network Path Not Found"

Dim objPDC As IADsContainer
Dim objObject


VB Code:
Set objPDC = GetObject("LDAP://OU=OU4,OU=OU3,OU=OU2,OU=OU1,DC=DC,DC=COM")        objPDC.Filter = Array("Computer")                For Each objObject In objPDC        DoEvents        msgbox objObject.Name    Next         Exit Function


is there any other way to get things done ( i Tried using ADO the Results are the Same . however in this case i get an error "Table does not exists")

Thanks in advance!

How To Get Computer Names And IP Addresses On Windows NT Or Windows98
Dear VBMaster!
How to get computer names and IP addresses on windows NT or Windows98 . Please help me

thanks for your help.

How To Get Computer Names And IP Addresses On Windows NT Or Windows98
Dear VBMaster!
How to get computer names and IP addresses on windows NT or Windows98 . Please help me

thanks for your help.

How To Send Characters To Another Computer On Windows 95 Network
Dear Master VB'sprogrammers!

I want to write a program which send characters to another computer on windows 98 network (Like CHAT program in Windows 98)
Many thank for your help.

How Does Windows Know When To Call The Screensaver?
Is there an API-call or something to check how much time passed since the last keypress
or mouse movement?

Call Calc.exe From Windows
I was hoping that someone would help me with the steps to call the calc.exe calculator application from within Windows.  I just want to call calc.exe up when the user clicks a calculator icon within my VB application.  I would prefer to do it this way rather than reinvening the wheel by writing my own clac routine.  Any suggeations?    

Thanks, Corinne

Get Error When Call Windows API
Hi all,

This is my test code to call a Windows API to read a section of an ini file. But the problem is every time I try to run this code, I get memory exception and Visual Basic die(I am using win2k SP3)

Private Declare Function GetPrivateProfileSection Lib "kernel32" Alias "GetPrivateProfileSectionA" (ByVal lpAppName As String, ByVal lpReturnedString As String, ByVal nSize As Long, ByVal lpFileName As String) As Long

Sub main()
Dim NumOfChar As Long
Dim ReturnString As String

NumOfChar = GetPrivateProfileSection("ini", ReturnString, 32767, "config.ini")

MsgBox ReturnString
End Sub

Windows Shutdown Call
I am looking for a api call that returns value when windows NT (4.0) is being shutdown/restart/logoff.

How To Explore Dll Or Exe Using VB6.0
how to get functions and procedures names with complete signatures from dll or exe using visual basic 6.0?

Thanks in advance

Explore
This is not a VB question exactly But since the knowledge probably exists here, I thought I ask.

Is there a way to stop the explorer to open up the searchpath to the desktop? I want that when explorer opens up it should just show the harddrives c, d, e and so on and not the lenghty c:windows..........?

Explore VB
Can someone help recommend a good book in Advanced VB? I have done several business applications with VB, but now would like to learn more about ASP, internet etc..The advanced VB class that I've had did not focus on these topics that I'm interested in.

Thanks in advance,
Anna

How We Call Windows Built In CALCULATOR(For Win ALL)
Hi folks !
My question is... how we can call windows built in calculator via VB Code.. for win all.. I am working on a project where i need some calculations from users and need for open of calculator... please help. THANKS.

Call Up Windows And Sending Key Strokes
Hi.

could someone please tell me how to call up different control panel screens (ex: the .cpl file for networking).

then i want to send keystokes to this screen and block the user from typing anything in while i am sending keystrokes.

i am trying to automate some processes with visual basic. for example; someone wants file and print sharing enable on their pc, but they do not know how to do it.

i could automate the process and send the executable to their pc. the executable would perform the process.

can anyone help me. i am sort of new to visual basic.

thanks in advance

API Call To Force Windows To Reboot?
Hi everyone,

Can anyone point me to any posts concerning rebooting the system via an API call? I know this should be in the API forum, but- hey no one reads that anyway.

I thought it was something like:

ExitWindowsEx(EWX_FORCE Or EWX_REBOOT, 0)

I've seen an example from John that uses this calls, but it seems not to have any effect- will it work on NT?

Sorry to ask such a stupid question (after a 3month absence from vb-world, I didn't even recognise the site!!)

John/James - THANKS! The new organisation and features are superb!

Can ActiveX DLL Call Windows EXE APIs?
I am trying to create an ActiveX DLL COM object that will instantiate an object that is a Windows Executable and make API calls to this object. Can ActiveX DLLs instantiate and call Windows Exe APIs? If so what might I be doing wrong or missing?

How To Call A Vb Program During The Windows Shutdown?
Hi, I have a vb application which is run to disable a particular NIC(network Interface Card) when the windows is started. When the windows is shutdown, the program is to detect if the NIC is enabled and disable it, if so.

I would like to know how to call the program when the windows shutdown occurs?

Interesting Thought, Can I Call &"lock Computer&" From Vb?
I'd like to "lock computer" if a certain app is inactive for more than 10 minutes. Since an application can be inactive while the pc is active (doing other things), just using the windows screen saver password wouldn't work
i'm looking for an api or anything else, that will let me call the event associated with
ctrl-alt-del->"lock computer"
in win2k/winnt

after searching i've discovered that doing

Code:

Declare Function LockWorkStation Lib "user32.dll" () As Long


private Command1_Click()
LockWS
End Sub

Private Sub LockWS()
LockWorkStation
end sub



produces desired results

Internet Explore
i was searching in the tuts corner and n the code libary but i didnt find any tutorial/codes on how to make a programm wich does the same as internet explore from microsoft..

i know it aint pretty hard to make in javascript bu vb.. i dont know =/
so if any1 know please tell me

Internet Explore?
i was wondering if anybody knows how to change the small icon in the corner of internet explore that is located by the min, restore, and close buttons? any help would be great, thanks.

Using InternetOpenUrl API Call On Chinese Installations Of Windows
I have an app that uses a call to the Wininet.dll's InternetOpenUrl API
function to retrieve HTML from web sites. My problem is people using an
Asian language setting end up getting irregularly formatted HTML (sprinkled
with tabs, spaces and question marks). One user confirmed that if he
changes the page encoding in Internet Explorer from "Chinese Traditional
(Big5)" to "Western European (ISO)" it fixes the problem but of course he
doesn't want to have to do this. I would think that there would be a flag I
can set in the API call to set the encoding to English but all my looking on
the web has yielded naught. Does anyone else know of a possible solution?

Call Windows Change Password Program
I'm working on a program that under certain conditions will require the user to change their network password (exactly like when the password expires). Does anyone know the exe or Windows API name for the Windows 2000 Professional 'Change Password' feature?

Thanks,
Nate

How To Call The Windows File Open Functiuon
Rather than keep building a form to open and save files there must be a way to call the File | Open feature that most Windows programs use. In the examples that came with my VB6 suite there is an example but it is not all there. It is missing the function that the code is calling. Any ideas? Thank you,

MrMajik

There are 10 types of people in the world:
Those that understand binary and those that don't.

Call Windows Application In A Modal Form
     How can i call a windows application (ex. WORD) in modal form....

    meaning The user cannot go to any other place if they dont close the application (ex. WORD)

      I'm using this code to call WORD.

    Code:ShellExecute 0, vbNullString, FileName, vbNullString, vbNullString, vbNormalFocus

     Thanks for your help.

How To Call A Start Button Of Windows In Status Bar
hi friends i wan'nt to put the start button of the Windows Operating system in my Vbasic Application how can i do that......

Recieve Windows Messenger Messages Or Send Direct Message To Computer
THis is my first post.
I was wondering if there was a way to receive the Windows Messenger messages in VB when someone sends them to you. (Not MSN Messenger but the service in XP/2000).
I already know how to send, but I want to direct the messages as they are recieved to a VB app so I can use a text-to-speech program to speak them.

If this is extremely complicated or impossible, is there a way to send a message with (winsock?) to another computer that will receive it?


Thanks

How To Save File From Explore
Hi

How can i save the webside www.google.com as a singel mht file
from my maco ?

I try with this but it donīt work

Private Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)
Public Sub HentOgGemSide(Websti, HdSti)
Dim IE As InternetExplorer
Set IE = CreateObject("InternetExplorer.Application")
IE.Visible = True
IE.navigate2 www.google.com
While IE.Busy: Wend

SendKeys "%Fm", True
SendKeys HdSti, True
SendKeys "{TAB}{DOWN}{UP}", True
SendKeys "%G", True
IE.Quit
Set IE = Nothing
End Sub

Pagesetup For Internet Explore
I'm using internet explore application to print the html code..
and I want to know how to minipulate the pagesetup of Internet explore like
setting margin to 1 inch instead of .5 inch..
not printing any of header and footer..
use letter paper size.. etc..

Thank you

Present Records As Explore Looks
I want to present and organize my recordset as the same design as explorer, so when you click on + and - it open and close.

+ Machine (is the lowest lewel)

When you click on the + the undergroup must be displayed

+ Machine1
+ Machine2
+ Machine3

and when you click on the + the under-under group must be displayed
and finally when you are on the highest lewel and dobbelclick, I want a form to be opened and the choosen record presents in a form.

Is it possible to do this in VB ?.

ShellExecute To Explore A Folder
Hi Everyone,

I am able to use the ShellExecute API to explore a folder just fine, however, I can't seem to figure out how to get the folder to open without the "FOLDERS" view being shown. Any ideas. I would appreciate any help. Thank you.

How To Set MS Internet Explore Homepage ?
Hi,

how to set MS Internet Explore Homepage ?
( ex http://www.freewebs.com/messfreakz )

Thx

Copyright Đ 2005-08 www.BigResource.com, All rights reserved