Help with Wait and Regestry entries -
This is my first prog pretty simple but it is giving me a head-ache
The prog will set a dun connection
ping to establish a VPN connection
check for a file
run a .exe
delete a file
write a registry entry.
I need help making the prog stop until the .exe it calls has finished running
and closes. I also need help with the regestry.
Here is the code THANKS!!!
Private Declare Function InternetAutodial Lib "wininet.dll" _
(ByVal dwFlags As Long, ByVal dwReserved As Long) As Long
Private Const INTERNET_AUTODIAL_FORCE_UNATTENDED = 2
Private Declare Function InternetAutodialHangup Lib "wininet.dll" _
(ByVal dwReserved As Long) As Long
Private Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)
Dim retry As Integer
Private Sub Form_Load()
retry = 1
retry1 = 1
'To automatically dial
Do
If InternetAutodial(INTERNET_AUTODIAL_FORCE_UNATTENDED, 0) Then
Sleep 5000 ' This is suspend for 5 secs 'This is to make a VPN
Shell ("ping.exe 192.19.201.444") 'connection
Sleep 10000 ' This is suspend for 10 secs
Shell ("ping.exe 192.19.201.444")
retry = retry + 5
Else
retry = retry + 1
MsgBox "Retry!"
End If
Loop Until retry >= 6
Do
If Len(Dir("C:\flag.txt")) > 0 Then 'check for flag file
retry1 = retry1 + 5 'If true out of loop
Else
Shell "c:\poll.exe" '!HELP! I need the program to stop here and
retry1 = retry1 + 1 'wait until poll.exe completes !HELP!
End If
Loop Until retry1 >= 6
Kill ("C:\flag.txt")
' !HELP! Here I need to write a registry entry !HELP!
'To disconnect
If InternetAutodialHangup(0) Then
MsgBox "Thank You!"
End If
Unload Me
End Sub
Regestry Size -
Okay, I just backed up my regestry (exported everything) and it's nearly 90MB! It's like 89.576***, now I was reading not to long ago an article that was saying that now-a-days, they wouldn't be suprise if a persons regestry got up to 15MB, is the article I read just really outdated or
remote regestry -
i need to connect to a remote regestry to read a few entries.
Does anyone know how to do this or where to start?
connect to regestry over lan -
hi all, how can i connect to somebodys regestry if i am administrator in my lan over vb-skript ?
i want to save a have a look for his regestry and maybe give him a new one
can anybody help me ??
cu
kreuzfeld
saving to the regestry -
right now, i am working with textfiles (very innefficiant...) how do i save stuff onto the regestry????
Changeg regestry settings -
How do i change the regestry from my VB 6.0 APP, like edit values.?
Regestry editing help -
i need to edit somthing in the regestry, how would i go about doing this?
computer problem please help -
ok it seems that regestry editing has been disabled on my computer. I know where the regestry key to do that is but i checked it with a third party editor and that isnt the problem.
When i try to open regedit it simply dosent respond. nothing freezes or anything nothing happens. the s
Regestry folder strings listing [resolved] -
I was searching for some method to list a regestry folder but i can't find the post that i'v seen here some months ago, could someone help me in this?
I saw but i don't remember how to make it.
I would need to list the regestry folder into a listbox item by item..
thanks
Help with Wait and Regestry entries -
This is my first prog pretty simple but it is giving me a head-ache
The prog will set a dun connection
ping to establish a VPN connection
check for a file
run a .exe
delete a file
write a registry entry.
I need help making the prog stop until the .exe it cal
*Resolved* Urgent - Subgrouping in Datareports -
This is driving me mad....
I have a table with: ID / DATE / TIME
I'm using a data environment & would prefer to stick with it as all my other lists use the enviroment.
What I want to do is to list the number of entries per hour per day.
IE:
12/June/02
12:00 + 2 en
* WITHDRAWN* Urgent - Subgrouping with Datareport designer -
This is driving me mad....
I have a table with: ID / DATE / TIME
I'm using a data environment & would prefer to stick with it as all my other lists use the enviroment.
What I want to do is to list the number of entries per hour per day.
IE:
12/June/0
how do i get my windows regestration key from the regestry -
how do i get my windows regestration key from the regestry?
Picking a name based on weights : SOLVED -
Hey guys, I am new to VB and am having one of those days where things just arent coming to me. What I want to do is pick a name from a list where the chance of picking a certain name might be greater or lower than the others. For example,
John has 72 entries
Jane has 35 entries
Ji
Recursive Regestry Del -
Does anyone have some code that i could look at, I have tried but keep getting stuck
tia
help read this! -
ok, i want to write a quick vb app that right clicks and has a delay, and also does other stuff, will any of you pro vb people be willing to do it for me :P
right click
wait 8 seconds
right click
wait 8 seconds
right click
wait 8 seconds
right click
wait 8 seconds
right cl
Simple Wait -
Hi, I'm looking for simple 'wait' command, that will wait for a certain number of seconds before executing the next line. I've googled it but all I find is really complicated methods. I would normally use a timer, but in this sense it's not practical, as I'm using like 20 waits. Is the
Remove similar entries from list -
How can i remove entries that have the same text from a listbox?
I'm currently doing that by giving the entries an order and then listing through all the entries and look if the one with listitems(x)
has the same text as the one with listitems(x-1). Is there a better way?
Another "Wait" method -
Anyone know a better way to wait than the Wait() method? The VBA wait makes you look at the current time then set the time in the future for when you want it to stop waiting. Seems kinda lame. Not just a simple wait 5 seconds, or 10 milliseconds.. like Wait(10).
Anyone know anoth
regestry -
does anyone have any links that could help me learn how to
write/delete/modify registry keys.
Installing Inf -
Can anyone kindly direct me on how to use the API to install the INF file that has HKR entries: I learnt I cannot use setupapi for HKR registry entries.
A sample INF file with HKR entries is attached.
Best regards.
Tope Akinniyi
Create DUN entries with RAS API -
Hi there,
I would like to know how to create DUN(dial-up networking) entries also known as phonebook entries using RAS API.
Thanx in advance
Installing INF Files -
Can anyone kindly direct me on how to use the API to install the INF file that has HKR entries: I learnt I cannot use setupapi for HKR registry entries.
A sample INF file with HKR entries is attached.
Best regards.
Tope Akinniyi
Finding 10 most popular entries in a table -
I'd like to add a feature to my site whereby whenever someone clicks on an item it will add that items tags to a table. Then, I can look into this table and find out the top 10 entries. Make sense?
The bit I'm stuck on is how to find just the top 10 UNIQUE entries rather than just t
I don't have a licence -
I have Vb learning edition 5.0 and a freind sent me the winsock control and i need to put stuff in the regestry! How do I do that, coz I wanna use it!
-jeC-
any easier way than typing 2000! lines of code -
my program needs todo this:
velocity = 40
Wait (tmp(0))
velocity = 40
Wait (tmp(1))
velocity = 40
Wait (tmp(2))
velocity = 40
Wait (tmp(3))
velocity = 40
Wait (tmp(4))
velocity = 40
Wait (tmp(5))
it needs to keep doing this until it gets to tmp(1000) is there any easier
reading ini file entries sequentially -
Folks,
Say I have an ini file and fluctuating number of entries under a certain heading i.e.
[ModuletrackStringSection]
Moduleaddress1
ModuleAddress2
ModuleAddress3
How can I loop through these entries within the
[ModuletrackSection]?
I know how to read one but not 1-n
dropbox -
a dropbox normaly displays 8 entries, to see the others, you need to scroll up or down. Is there a way to display 16 entries (expanding the visible entries)?
thanks
clean registry -
is there a program that will sort thoguh all the crap in my regestry and delete the old/unused values???
Thanks
Deleting from the registry -
what api/s would i need to use do delete whole branches of the regestry tree.
Exact Registry Entries For File Association.... -
what are all the registry entries for file association... i need all the registry keys and string entries.. i do not need code to write the entries, just the keynames and values... please only reply if u know exactly how to do this and know the keynames... Thanx...
Creating and Sorting MDB in VB6 -
Hi,
I was wondering if there was a way to create a new MDB and have a sort applied to MDB.
In my program, I create a new MDB and add entries into it.
The entries are added with no specific order.
I would like the new MDB to have all the entries ordered/sorted by First Name and La
sorting entries in text files -
foe example i have a text file named mydbs.txt
the entries inside it are
anything 12.00
others 65.65
helpme 56.76
anyone 96.65
schizo 44.44
how do i get the entries to be sorted where the highest entry is on the top of the file...
Duplicate ComboBox entries -
When i run this macro in excel, i am getting duplicate entries in my combobox, how do i delete the multiple entries so there is only one of each. Here is the code
Dim k As Integer
For k = 26 To 50 Step 2
ComboBox1.AddItem ActiveSheet.Cells(k, 33).Text
Next
[2005] DNS Entries -
I have some computers on our network that have multiple DNS entries for the same IP address like this:
IP Address: 192.168.0.101
DNS Hostnames: server1.domain1.com
server1v2.domain1.com
Is there anyway I could retrieve both of these DNS entries and store
Autotyping text query -
Hello. Designing a form which requires a sort of movement in text.
E.g. "Invalid Password . . . Please wait"
In this line of text ^ the desired effect is that the three periods / full stops after "Invalid Password" need to be "animated" in the sense
Anyway to stop inserting duplicates entry -
Hi,
I've got a webpage where users are adding new entries. These entries will then be entered into a table. However, there are some entires that are duplicate and I have to use Distinct query to display them.
Is there anyway to check for duplicating entries before adding into t
Timed Key Presses -
I'm kinda a n00b at VB6. My question is this... I want to make a program that will...
Wait 41 seconds
Press 2 then Down *on the following second*
wait a second, press down
wait a second, press down
wait a second, press down
etc...
Basically, I want it to emulate key-presses
Can I use MSMQ in a queue processing application -
Hi - looking for some guidence here.. I have developed an application where users post records to a table called message_queue and then an application to process the queue and the records within it. All works fine except I need to figure out a better way to handle the queue. For exampl
Some DB Questions -
Im new to databases, not VB. Before i list some of the questions, ill explain what im doing first. Basically im making a VB Database in which it stores API, Code and Tutorials. (Which the first release can be found at here So as there are 3 categories i used 3 Access Database files (i
Dynamic button creation -
I need to create a number of buttons based on the number of entries in a database.
If 3 entries then 3 buttons, 6 entries then 6 buttons. I can do it easily in ASP, but this is a desk top app..
Any ideas guys?