Add File To Startup-registry
I'm want to make a program that you enter a filename of a exe or batch file into a text box and you click on a cmd that file will start when your computer starts. I would want it to use the registry, unfortunately, I have no clue on how to do this. Can somebody tell me how to make add something to the registry to make an app load up on startup? Thank you for your time
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Adding My File To The System Startup In The Registry
how can i add my file to the system startup in the registry
HKEY_LOCAL_MACHINE, "Software\Microsoft\Windows\CurrentVersion\Run"
HKEY_LOCAL_MACHINE, "Software\Microsoft\Windows\CurrentVersion\RunServices"
how is this done? i have seen source codes n searched this forum but nothings really got me any further
Registry Startup Key
I've tried reading through a couple of examples but I can't really differentiate between what's what. Here's what I want to do:
I have a checkbox that says 'Start with windows.' When it is ticked, I want to create a key in HKCU...RUN with the path and when it is unticked I want it to delete this key.
Thanks for any help.
Registry Startup With XP
I knwo how to add something to the startup in Windows with VB and I can do it in the LocalMachine or CurrentUser but forr XP that has multiple logins on the one machine, how can I have it run for all users without having to do the install on each user? If I do it on the LocalMachine key, it only works if users have admin access.
Any suggestions?
Thanks!
Registry To 'On StartUp'?!
I wanna put an option in my app so the user can choose if he wants the app to b open on startup of windows.
is there a key for that option in the registry so i can write to it?
Registry And Startup
I want to be able to search through the registry and the win.ini to find all programs that are started up with my computer and list them in a ListView.
Does anyone have any ideas how I can go about doing this?
Startup Registry
I'm trying to get my program to run on startup of windows. I know about the Start Up folder, but that sounds flimsy.
I searched for some info about using the registry and it says to use the key
HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionRun
but I don't know what to do from then on(and how to) in visual basic. Any helps?
Registry Startup
Hi Folks,
Just wondered if any of you knew where the registry strings are that startup up programs and other files? I know I could use the startup folder or win.ini etc, but I want to know where abouts those registry settings are. Thanx
Rhys
--------------
VB6 LE
Startup With Registry
I need to know how to make my program start up when the computer turns on, and I don't want to put in in the Startup folder in the programs/start menu. Is there a startup key in the registry where I can add my program into? Please help. Thanx.
-Mike
Help On Run-at-startup In Registry
I need my program to run on startup... One way is to place a shortcut in the STARTUP folder in the Start menu and another is putting it in the registry (That's a scary place). I know where to put it to run on Startup on my Computer, but do all the Windows Platforms have that same path?
Add To Registry-Startup
Hi Guys...
Could someone please tell me, how do i add code into my program to add itself into:
"HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionRun"
Does any1 have the code to do this, and where do i insert this code, such as it only executes the code the 1st time, add itself(the program) to the registry, and makes the program start everytime windows start up??
I know how to do it manually, but how do i do it through code.
Thanks guys
<DIESEL>
If it wasn't for the last minute, NOTHING would get done!!!
How Do I Add A Startup Item To The Registry?
How do i add a startup item to the registry?
I want to add "c:Text.exe" to start up when windows start up.
So i want to edit the Registry location or the startup item, location is:
"My ComputerHKEY_LOCAL_MACHINESoftwareMicrosoftWindowsCurrentVersion Run"
i want to add this string to it
Value name: Test
Value data: c:Test.exe
How would i do this? I read the example at http://www.mentalis.org/apilist/RegCreateKey.shtml but i didn't get it.
Can any one help with this?
Startup Registry Key Problem
Hi,
I have developed an application called "Quick Access XP" it is a program that basicly has a series of command buttons which allows a user to open up notepad e.c.t using the "Shell" command. I have programed the application to start as a tray icon and when it is clicked once (by left or right mouse button) it displays my program. I have menus which allow the user to minimize to tray and to exit. Also I have a Help menu which displays an about form.
Anyway everything works fine but now I want to make my program (using a reg key in HKEY_LOCAL_MACHINEsoftwaremicrosoftwindowscurrentversion
un)
boot every time the PC starts so it is easily accessable by the user.
This is were I am having trouble I have tried reusing code from sample apps so many times it isn't funny but none of them seem to work.
This is my latest attempt:
On Error Resume Next ' Make sure no errors occur
If App.PrevInstance = True Then End ' If its already running , close this version
regkeyname = "QuickAccessXP"
UpdateKey &H80000002, "softwaremicrosoftwindowscurrentversion
un", regkeyname , App.Path & "" & App.EXEName & ".exe"
When it is run it comes up with this error "ByRef argument type mismatch"
and highlights the word in orange.
If you have read this far I THANK YOU very much in advance and if you chose to try and help me that is even better!
Thanks
How Can U Put A Program In Startup Via Registry?
how can you make the program automatically start up , by modifying the registry??
I find it more reliable.. but i dont know how to do it
can anybody tell me where the reg location is located?
Registry Startup Question
if i want to add an entry to my
HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionRun
does the 'name' have to be the name of the exe?
e.g... if this set the entry in registry
SetKeyValue HKEY_CURRENT_USER, "SoftwareMicrosoftWindowsCurrentVersionRun", "name", "C:lah.exe", Reg_String
would blah.exe startup everytime windows started, if that entry was in registry?
Startup Registry Code
VB Code:
Private Sub Form_Load()'Add the program to regedit. So it runs each time the computer restarts. Dim sAppEXE As String sAppEXE = App.Path & IIf(Right$(App.Path, 1) = "", "", "") & App.EXEName & ".exe" SaveSettingString HKEY_CURRENT_USER, "SoftwareMicrosoftWindowsCurrentVersionRun", App.Title, Chr$(34) & sAppEXE & Chr$(34)End Sub
do i need something for the 'SaveSettingString ' part? or will the code work fine as it is to make the program restart on my pc
Registry Startup Flags
Hello !
I am developing a software which loads itself in to the Systm Tray when windows loads.
I have created a value in the registry HKLM / Run section.
I have seen that many startup applications have put flags in the value data after specifying the path of the application.
i.e. /background /min -onboot -quite etc.
My question 1. What is the purpose of using thease flags?
My question 2. Could any body give the complete list of flags and it's Usage?
Thanks and looking forward to see the replies.
App As Startup Registry Problem.
Error:
Quote:
Compile error:
Argument not optional
Code
VB Code:
Private Sub cmdSaveChanges_Click() On Error GoTo cmdSaveChanges_Click_Err Dim SetNTService As Long SetNTService = App.Path & "" & App.EXEName & ".exe" If cboNTService.Text = "Enabled" Then SaveSetting "HKEY_CURRENT_USERSOFTWAREMicrosoftWindowsCurrentVersionRun", "Operations Manager Pro", SetNTService Else DeleteSetting "HKEY_CURRENT_USERSOFTWAREMicrosoftWindowsCurrentVersionRun", "Operations Manager Pro", SetNTService End If Unload Me Exit SubcmdSaveChanges_Click_Err: STZ_ErrHandleFILE "cmdSaveChanges_Click"End Sub
Registry Startup Error
Dim Reg As Object
Set Reg = CreateObject("wscript.shell")
Reg.RegWrite "HKEY_LOCAL_MACHINESOFTWAREMICROSOFTWINDOWSCURRENTVERSIONRUN" & "App.EXEName", App.Path & "" & App.EXEName & ".exe"
run time error 2147024770 (8007007e)
Set Reg = CreateObject("wscript.shell")
any ideas :S?thanks
API Find Startup Registry
IS there an API that will tell me that path to the RUN folder in the registry?
you know
"HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionRun""
thanks
Run On Startup / Code For Registry ???
How do you get a program to run when the PC is restarted.
For some reason, some methods dont work on the particular PC's I'm using it on eg: putting it in the windowsstart menuprogramsstart up directory wont work.
Could you therefore post any way you know even if there is already other methods posted.
Thanks All
Adding To Startup Registry
ide like a simple startup registry code. nothing special, just one that will aloow me to have my add startup on every boot up.
Registry And Windows Startup.
hello.
I just found in some of the faqs one that posted by kgo how to run your program when windows starts,
Code:Dim Reg As Object
Set Reg = CreateObject("wscript.shell")
Reg.RegWrite "HKEY_LOCAL_MACHINESOFTWAREMICROSOFTWINDOWSCURRENTVERSIONRUN" & App.EXEName, App.Path & "" & App.EXEName & ".exe"
but the problem is that I have a preferences in my prog with checkbox ("Execute the program when Windows starts") so if there is a V in the checkbox so the code is entered to registry, but if there is no V so it need to be deleted if it was there. Can anyone help?
Check Registry Setting For Your App Startup
I know how to add my app to the registry so it will startup when the users computer starts, but I am a little confused on how to retrieve that value to check if its already been saved. I know in the sub it shows you how to get a saved registry setting, but again im still confused on how to get the start up registry setting.
I am using this method to save the entry:
------------------------------------------------------------------------
Code:
Call MakeStartUp(AddFile(App.Path, (App.EXEName & ".exe")))
------------------------------------------------------------------------
and this is the sub for it:
-------------------------------------------------------------------------
Code:
Public Declare Function RegCloseKey Lib "advapi32.dll" (ByVal hKey As Long) As Long
Public Declare Function RegCreateKey Lib "advapi32.dll" Alias "RegCreateKeyA" (ByVal hKey As Long, ByVal lpSubKey As String, phkResult As Long) As Long
Public Declare Function RegDeleteKey Lib "advapi32.dll" Alias "RegDeleteKeyA" (ByVal hKey As Long, ByVal lpSubKey As String) As Long
Public Declare Function RegDeleteValue Lib "advapi32.dll" Alias "RegDeleteValueA" (ByVal hKey As Long, ByVal lpValueName As String) As Long
Public Declare Function RegOpenKey Lib "advapi32.dll" Alias "RegOpenKeyA" (ByVal hKey As Long, ByVal lpSubKey As String, phkResult As Long) As Long
Public Declare Function RegQueryValueEx Lib "advapi32.dll" Alias "RegQueryValueExA" (ByVal hKey As Long, ByVal lpValueName As String, ByVal lpReserved As Long, lpType As Long, lpData As Any, lpcbData As Long) As Long
Public Declare Function RegSetValueEx Lib "advapi32.dll" Alias "RegSetValueExA" (ByVal hKey As Long, ByVal lpValueName As String, ByVal Reserved As Long, ByVal dwType As Long, lpData As Any, ByVal cbData As Long) As Long
Public Const REG_SZ = 1 ' Unicode nul terminated String
Public Const REG_DWORD = 4 ' 32-bit number
Public Const HKEY_CLASSES_ROOT = &H80000000
Public Const HKEY_CURRENT_USER = &H80000001
Public Const HKEY_LOCAL_MACHINE = &H80000002
Public Const HKEY_USERS = &H80000003
Public Const HKEY_PERFORMANCE_DATA = &H80000004
Public Const ERROR_SUCCESS = 0&
'Option Explicit
Const UNIT_NAME = "UTILITY"
Public Sub MakeStartUp(FileName As String)
Dim Counter As Integer
Dim MarkPos As Integer
Dim Application As String
Application = GetFileName(FileName)
Application = Left(Application, (Len(Application) - 4)) 'Replace(Application, ".exe", "", , , vbTextCompare) & "~@#"
Call SaveString(HKEY_LOCAL_MACHINE, "SOFTWAREMicrosoftWindowsCurrentVersionRun", Application, FileName)
End Sub
Public Sub SaveKey(hKey As Long, strPath As String)
Dim KeyHand&
Dim r As Long
r = RegCreateKey(hKey, strPath, KeyHand&)
r = RegCloseKey(KeyHand&)
End Sub
Public Function GetString(hKey As Long, strPath As String, strValue As String)
'EXAMPLE:
'
'text1.text = getstring(HKEY_CURRENT_USE
'
' R, "SoftwareVBWRegistry", "String")
'
Dim KeyHand As Long
Dim datatype As Long
Dim lResult As Long
Dim strBuf As String
Dim lDataBufSize As Long
Dim intZeroPos As Integer
Dim r As Long
Dim lValueType As Long
r = RegOpenKey(hKey, strPath, KeyHand)
lResult = RegQueryValueEx(KeyHand, strValue, 0&, lValueType, ByVal 0&, lDataBufSize)
If lValueType = REG_SZ Then
strBuf = String(lDataBufSize, " ")
lResult = RegQueryValueEx(KeyHand, strValue, 0&, 0&, ByVal strBuf, lDataBufSize)
If lResult = ERROR_SUCCESS Then
intZeroPos = InStr(strBuf, Chr$(0))
If intZeroPos > 0 Then
GetString = Left(strBuf, intZeroPos - 1)
Else
GetString = strBuf
End If
End If
End If
End Function
Public Sub SaveString(hKey As Long, strPath As String, strValue As String, strdata As String)
'EXAMPLE:
'
'Call savestring(HKEY_CURRENT_USER, "Sof
'
' twareVBWRegistry", "String", text1.t
' ex
' t)
'
Dim KeyHand As Long
Dim r As Long
r = RegCreateKey(hKey, strPath, KeyHand)
r = RegSetValueEx(KeyHand, strValue, 0, REG_SZ, ByVal strdata, Len(strdata))
r = RegCloseKey(KeyHand)
End Sub
Function GetDWord(ByVal hKey As Long, ByVal strPath As String, ByVal strValueName As String) As Long
'EXAMPLE:
'
'text1.text = getdword(HKEY_CURRENT_USER
'
' , "SoftwareVBWRegistry", "Dword")
'
Dim lResult As Long
Dim lValueType As Long
Dim lBuf As Long
Dim lDataBufSize As Long
Dim r As Long
Dim KeyHand As Long
r = RegOpenKey(hKey, strPath, KeyHand)
' Get length/data type
lDataBufSize = 4
lResult = RegQueryValueEx(KeyHand, strValueName, 0&, lValueType, lBuf, lDataBufSize)
If lResult = ERROR_SUCCESS Then
If lValueType = REG_DWORD Then
GetDWord = lBuf
End If
'Else
'Call errlog("GetDWORD-" & strPath, Fals
'
' e)
End If
r = RegCloseKey(KeyHand)
End Function
Function SaveDword(ByVal hKey As Long, ByVal strPath As String, ByVal strValueName As String, ByVal lData As Long)
'EXAMPLE"
'
'Call SaveDword(HKEY_CURRENT_USER, "Soft
'
' wareVBWRegistry", "Dword", text1.tex
' t)
'
'
Dim lResult As Long
Dim KeyHand As Long
Dim r As Long
r = RegCreateKey(hKey, strPath, KeyHand)
lResult = RegSetValueEx(KeyHand, strValueName, 0&, REG_DWORD, lData, 4)
'If lResult <> error_success Then
' Call errlog("SetDWORD", False)
r = RegCloseKey(KeyHand)
End Function
Public Function DeleteKey(ByVal hKey As Long, ByVal strKey As String)
'EXAMPLE:
'
'Call DeleteKey(HKEY_CURRENT_USER, "Soft
'
' wareVBW")
'
Dim r As Long
r = RegDeleteKey(hKey, strKey)
End Function
Public Function DeleteValue(ByVal hKey As Long, ByVal strPath As String, ByVal strValue As String)
'EXAMPLE:
'
'Call DeleteValue(HKEY_CURRENT_USER, "So
'
' ftwareVBWRegistry", "Dword")
'
Dim KeyHand As Long
Dim r As Long
r = RegOpenKey(hKey, strPath, KeyHand)
r = RegDeleteValue(KeyHand, strValue)
r = RegCloseKey(KeyHand)
End Function
Public Sub DeleteFromStartup(FileName As String)
Dim Counter As Integer
Dim MarkPos As Integer
Dim Application As String
Application = GetFileName(FileName)
Application = Left(Application, (Len(Application) - 4)) 'Replace(Application, ".exe", "", , , vbTextCompare) & "~@#"
Call DeleteValue(HKEY_LOCAL_MACHINE, "SOFTWAREMicrosoftWindowsCurrentVersionRun", Application)
End Sub
Public Function GetFileName(Path As String) As String
'returnes the filename from a path.
Dim Counter As Integer
Dim LastPos As Integer
LastPos = 1
For Counter = 1 To Len(Path)
If Mid(Path, Counter, 1) = "" Then
LastPos = Counter
End If
Next Counter
GetFileName = Mid(Path, (LastPos + 1), Len(Path))
End Function
Public Function AddFile(Path As String, File As String) As String
'This procedure adds a file name to a path.
If Right(Path, 2) = ":" Then
Path = Path & File
Else
Path = Path & "" & File
End If
AddFile = Path
End Function
Registry Keys To Start An App At Win Startup
are there any oher keys like
HKLMSoftwareMicrosoftWindowsCurrentVersionRun
HKLMSoftwareMicrosoftWindowsCurrentVersionRunOnce
HKCUSoftwareMicrosoftWindowsCurrentVersionRun
HKCUSoftwareMicrosoftWindowsCurrentVersionRunOnce
that i can use to run my app at windows startup i want a more hidden key than those
thnks
Registry Application Like Startup In Msconfig
i am new and need a little help. I have a project i am almost finished and am strugling with the last little bit of the project. i have created a listbox and have changed the type to checkbox. now what i want to do and need help with is this. I want to be able to list all the string names and values that exist at 7 different key and depending on what key they reside at, either have a check in the checkbox next to the string name and value that has been written to the listbox or not. for example: i want all the string names and values read from hkey_local_machinemicrosoftsoftwarewindowscurrentversion
un to be written to the listbox, as well as run-, runservices, runservices-,runonce, runonce-, etc...
If the string resides at a subkey that doesnt end in a "-" then the checkbox will be checked, but if the string and value do reside at a subkey that ends in a "-", the checkbox will be unchecked.
the second part i would like i to do is if you check or uncheck a box then it needs to copy the string value from the subkey with the "-" to the subkey without the "-" or vice versa.
basicly what this is is an application very similar to the startup portion of msconfig.exe in windows. please help me.
thank you
Mark
*RESOLVED* Windows Registry - Startup
Help!
I have an installation program that I wrote which installs an application on a clients PC. I would like to automatically add some code to the Windows registry so the application will start up each time the system re-boots. I have tried different API calls but have failed.
I am sure there is a "simple" API procedure for this. Can someone help me?
Thanks,
Puffgroovy
Edited by - Puffgroovy on 2/16/2005 7:10:18 AM
Editing The Registry To Launch My Program At Startup?
I know I need to use the win API of sorts to create a registry key to launch my program with windows. It's just basically my own personal little launch center... And rather than using the startup section (where my GF can delete the link - as she often does for no apparent reason) I'd like to have it in the registry where it will still come up but she will be sure not to find it =)
Thanks
Mike
Unable To Read From Registry At Startup Everytime
Hi
I have a VB6 application which is in the startup folder. so it runs everytime the PC is turned on.
In the Main method - I am trying to find the name of the Computer from the Registry. The problem is that the code is not able to get the computer name every time. The field variable where the computer name is stored is g_cWorkStation. Perhaps the registry is inaccessible for a few milliseconds at startup ?
I am guessing here that the Registry has trouble sometimes getting hold of the Workstation name at startup OR there is a bug in my local class cRegistryAccess. cRegistryAccess handles all the information pertaining to the registry.
Has anyone heard of a similar problem ? where can I find out exactly what is going on ?
I set my registry object as follows
Set g_objReg = New cRegistryAccess
My code is as follow
'-----------------------------------------------------------------------------
Private Sub Main()
On Error GoTo ErrorHandler
'Init Prime/Drain labview event verification
g_bLabViewEventReceived = False
'Detect valid COM Port and connection
Set g_objDeviceInfo = New DeviceInfo
g_nCommPort = g_objDeviceInfo.DetectConnectedPort
g_objDeviceInfo.CommPort = g_nCommPort
'Set Device info XML Class
Set g_objDevice = New cDevice
' Show the splash screen.
frmSplash.Show
g_cWorkStation = g_objReg.GetRegistryValue(HKEY_LOCAL_MACHINE, _
"SYSTEMCurrentControlSetControlComputerNameActiveComputerName", "ComputerName")
Exit Sub
ErrorHandler:
MsgBox "Please ensure the device is connected properly, then try again."
If Not frmSplash Is Nothing Then
Unload frmSplash
End If
End Sub
RegOpenKeyEx Reads Registry Erratically In Startup
Hi Anyone expert in windows API function RegOpenKeyEx
I have a VB6 application. It is in startup folder - so it gets started as soon as the PC is turned on. In the MAIN method - I try to find the computer name. 90% of the time the application is successful. The error handler has been commented out - so I don't know what happens - but sometimes the application is unable to get the computer name.
Is there an access issue right at startup ?
following is my code.
I declare my windows API as follows
Declare Function RegOpenKeyEx Lib "advapi32.dll" Alias _
"RegOpenKeyExA" (ByVal hKey As Long, ByVal lpSubKey As String, _
ByVal ulOptions As Long, ByVal samDesired As Long, phkResult As _
Long) As Long
in my MAIN method I am calling my class object to find the computer name
g_cWorkStation = g_objReg.GetRegistryValue(HKEY_LOCAL_MACHINE, _
"SYSTEMCurrentControlSetControlComputerNameActiveComputerName", "ComputerName")
----------------------------------------------------
My application then calls the following method
------------------------------------------
Public Function GetRegistryValue(ByVal RootKeyName As RootKeyConst, _
ByVal KeyPath As String, ByVal SubKeyName As String) As Variant
Dim lRetVal As Long 'result of the API functions
Dim hKey As Long 'handle of opened key
Dim vValue As Variant 'setting of queried value
GetRegistryValue = Null
lRetVal = RegOpenKeyEx(RootKeyName, KeyPath, 0, _
KEY_ALL_ACCESS, hKey)
'If Not Errors(lRetVal) Then
lRetVal = QueryValueEx(hKey, SubKeyName, vValue)
'If Not Errors(lRetVal) Then
If Len(CStr(vValue)) >= 1 Then _
If Asc(Right(CStr(vValue), 1)) = 0 Then _
vValue = Left(vValue, Len(vValue) - 1)
GetRegistryValue = vValue
'End If
'End If
RegCloseKey (hKey)
End Function
-----------------------------------------------------
i have no clue whats going on - Please help.
khalid
(khalidhaque@yahoo.com)
Load Help.txt File At First Startup
I want to try and get my users to read the help file that comes with my program because it explains a lot of important detail about the use of my program.
How can i simply display the text file the first time the program is run and not every time it is loaded.
Thanks
HELP!! Location Of File On Startup...
Hey, I was wondering how you get the location of a file's own directory when its opened like GetRunDir() or something. Dont know if you know what I mean by that but I'll give u an example.
When I open my program I want to know what dir the user has run my file from so that i can use that dir to write other files to for the program.
help me lol
Rename A File At Startup
I need to have one of my VB program files renamed. But I'm using that program itself to select the new name. So I assume the best way is to have the VB program create a bat file to rename it at startup? If so, where would I put this in windows to run one? I know in the registry I use:
softwaremicrosoftwindowscurrentversion
un
under LOCALMACHINE to run stuff at startup. I noticed there is a RunOnce there also. Does windows run things in here only once and then remove them from the registry? Would I create a bat file and call it from there?
Thanks!
Add An Exe File To Window Startup
need help to add a file (exe) to window startup or in registry so each time it runs itself on startup....
also is it possible to copy exe file to any location when exe is run for FIRST time....
thanks for helping....
Checking File On Startup
OK, I am designing an application that will have 4 separate county offices working with the same application. They are not networked (seems strange for a state office) so their databases are just for them. They have different things that each county needs in their application environment. (Different combo box lists mainly), but I am wanting the program to ask on initial startup (First time program is ran) to select their county environment so the app can then save the preference so that it doesn't have to ask again!
What would be the best way to go about this? And can you provide some kind of code for tis kind of function. I am using ADO Jet 4.0 for the database (Access 2000) Should I use a database entry, or create a file that is read at startup? Thanks in advance!
Load Help.txt File At First Startup
I want to try and get my users to read the help file that comes with my program because it explains a lot of important detail about the use of my program.
How can i simply display the text file the first time the program is run and not every time it is loaded.
Thanks
Startup A File From A Treeview
Hallo,
I have a Treeview with the content of a directory.
When I dubbelclick on a node of the Treeview (wich references to a file in a directory) I like to startup this file.
For example: When it is a Word-file, I like to startup Word with this file. Etc...
Can somebody help me? I haven't any idea how to do this?
Regards,
Victor
Program Looking For File At Startup It Can't Find
Hello,
I started from a small VB program, located in a subdirectory on my computer, changed and added to it and saved it in another directory. The program runs ok from there. I moved all the files to another directory and when I try to run the program it gives me an error message that it can't find such and such file. The path it gives is obviously erroneous; "c:program filesprogram files....", obviously the path to the file it is looking for got screwed up. It is looking for the file I started this program from with the extension .bas, which it thinks is in the path. My question is, where in the IDE do I find what is calling this (can't see it in the code) and what is going on?
It is VB6.
Thanks
Startup Text File For Program
Hello all,
Can someone please help me with a log file when the user starts up my program? I already have the data that will go in the log, which will use the now statement, such as this:
Open "c: est.txt" For Append As #1
Print #1, Now
Close #1
What I would like to know is how can I reset the log file after it has gone over a certain size in Kilobytes? By resetting I mean clearing the text file and starting over.
Any help would be appreciated.
TIA
How To Create An Auto Run/startup File?
Can I create an auto run/startup file using VB? What I meant
is this. Once the user inserted the diskette 3.5 into his
drive A:, how do I automatically run certain program from
there?
Appreciate it if someone can help.
Jay
Shell Is Killing My Startup File???
Hi,
Can anyone help me... The problem is:
My Line:
Private Sub Picture1_Click()
file = App.Path & "datagame
un -f4 -2 pinobee.zip"
Shell file
End Sub
I am trying to run a Rom from a menu've made (Emulator GBA)
But every time i click on the icon to launch it via my made program
it pops up in the task bar and it is killed emediatly.
Can someone give me an HINT on how to FIX this...
THANXXXXXX
File Count & Startup Switches
Hi,
Does anyone know how I can get a count of files from a specfic directory ?
Also, if I want to supply a startup switch with the .EXE file, how can nI pick this up in my code ?
Many thanks,
Nick.
Application Startup And Loading The File That Is Clicked On
I want to be able to startup my application by clicking on a document that is related to it. Just like you can startup Word by clicking on a document. Word startsup with that particular file. How do I tell the application that it has to startup with that particular file?
Program's .exe File's Icon When Using Sub Main As Startup
hi.. why is it that when I'm giving a form (that becomes the startup form) an icon, then the resulting .exe file has the icon automatically, but when I use Sub Main as startup, the icon dissapears, and the resulting .exe file has the standard VB icon?
I want to use Sub Main as startup and I want to use the icon I set in the form as the .exe file's icon. I don't want to manually set the icon in Windows because I want to distribute the program to my users, and it'll seen unprofessional if the .exe file has the standard VB icon.
Thank you.
|