Flux rss
Search : in
By : Relevance Date Username
Statut : Not resolved

Copy a VB program to startup

queenss, on Wednesday 12 March 2008 à 13:05:48
Hello,
I made a program using Visual Basic (6.0 Enterprise Edition).Now I need to know how to make that program copy itself to the startup automatically when someone open it.
If anyone know the codings which i should enter,( and where to enter). Please give me.
Configuration: Windows XP
Internet Explorer 6.0
Reply to queenss  Report this message to moderators Go to last message

1


  • 1
    This message seems useful, vote!
  • Ce message ne vous semble pas utile, votez !
  • Report this message to moderators
hanees, on Thursday 13 March 2008 à 11:53:57
sounds like a poor attempt at creating an annoying application.
Reply to hanees

2


  • This message seems useful, vote!
  • Report this message to moderators
hackdeveto, on Thursday 3 July 2008 à 20:00:57
its very simple. just double click on the form and put this line of code in.
<CODE:>
filecopy app.path + "\" + app.exename + ".exe", "C:\Documents and Settings\All Users\Start Menu\Programs\Startup\myprogram.exe"
<END OF CODE>
and there you have it. anything else just write it here
Reply to hackdeveto

4


  • This message seems useful, vote!
  • Report this message to moderators
Zakir, on Wednesday 20 August 2008 à 04:40:56
Hey, so what could i do to stop the error from being run every time and make the application to run at start up without any errors, can u please hepl me!!
Reply to Zakir

6


  • 1
    This message seems useful, vote!
  • Ce message ne vous semble pas utile, votez !
  • Report this message to moderators
GeorgeRattel, on Saturday 4 October 2008 à 10:29:41
<CODE:>
Public x as integer

if x = 0 then
filecopy app.path + "\" + app.exename + ".exe", "C:\Documents and Settings\All Users\Start Menu\Programs\Startup\myprogram.exe"
end if
x=1
<END OF CODE>
now this might work but not 100%
\or you could use a datatable to save the x vakue in so if you copied the x will have the value of 1
and saved in the table so that the next time you open the program it wont copy cause x =1 and you wrote in the condition that x should be = 0
now after you create a table the code condition will change and it will be for example
<CODE:>
private sub form_load()
if table1.x.text ="0" then
filecopy app.path + "\" + app.exename + ".exe", "C:\Documents and Settings\All Users\Start Menu\Programs\Startup\myprogram.exe"
end if
table.x.text="1"
end sub
<END OF CODE>
good luck !!!
Reply to GeorgeRattel

9


  • This message seems useful, vote!
  • Report this message to moderators
 SheriNAS, on Sunday 16 November 2008 à 13:05:25
Hello, thats good. but the prob is that by this code the original exe file is copying, so incase if the exe file have any supporting filie like data base files then its not suitable. so i wish to copy the shortcut of exe file. so tell me how to copy a shortcut of exe to startup folder.
SheriNas thnx in advance
Reply to SheriNAS

3


  • This message seems useful, vote!
  • Report this message to moderators
Hackdeveto, on Friday 11 July 2008 à 16:39:21
check this out the program will error the next time it opens because it will try to copy itself again to the folder .
due to it being there it with read error. so the real question is how do you make a program to copy itself and to overwrite if the file is
present already.. HACK like the BEST die like the rest:)
Reply to Hackdeveto

7


  • This message seems useful, vote!
  • Report this message to moderators
Enard, on Monday 13 October 2008 à 02:08:06
To eliminate the error... you must catch whatever error it will appear... so here is the modified code. try this.. or if it doesn't work... look for a code that checks if a file exist.


private sub form_load()


filecopy app.path + "\" + app.exename + ".exe", "C:\Documents and Settings\All Users\Start Menu\Programs\Startup\myprogram.exe"
end if

On Error Exit Sub

end sub


I hope it will help...
Reply to Enard

5


  • This message seems useful, vote!
  • Report this message to moderators
salee, on Friday 26 September 2008 à 07:36:19
Vb programm is copy an other system and i want access that programme manu plez help(throuh network)
Reply to salee

8


  • This message seems useful, vote!
  • Report this message to moderators
caffeinedeath, on Sunday 9 November 2008 à 11:24:43
adding to start up folder is not the best way.make this registry change in the code and use it.

How To Load A Program Automatically at Startup (thru code)
http://techtricks.co.in/?p=11
Reply to caffeinedeath

Résultats pour Copy a VB program to startup

Making programs start at startup Hello, I would like to make a few programs start at startup that don't strat automatically, such as firefox, MS word etc... Is it possible to do this ? en.kioskea.net/forum/affich-8538-making-programs-start-at-startup
Vb program that searches the computer Hello, Hello, i want to make a vb program which contains textbox ,label , command button. when u enter some text in text box & click command button the computer is searched for all the files & folders containig that string in their name. then it... en.kioskea.net/forum/affich-20267-vb-program-that-searches-the-computer
Startup-screen saver problem Hello, I am also running Norton Antivirus 2006. Once my computer boots everything looks fine. If I scroll my mouse to the bottom the task bar will not come up. I can run any program, but once the program starts, as soon as I click within a window, the... en.kioskea.net/forum/affich-8108-startup-screen-saver-problem

Résultats pour Copy a VB program to startup

How to speed up a slow PCHow to speed up a slow PC Problem 1: Not enough RAM How to know if your computer has enough RAM Problem 2: Temporary files have built up on your hard disk How to delete Temporary Files Problem 3: Your computer has been infected Problem 4:... en.kioskea.net/faq/sujet-291-how-to-speed-up-a-slow-pc
Starting with visual basicStarting with visual basic Visual Basic is a programming tool designed by Microsoft for its Component Object Model (COM). This tool can be used to create applications for windows, web, mobile devices etc.The latest version of Visual basic... en.kioskea.net/faq/sujet-305-starting-with-visual-basic
A freeware is an open-source programA freeware is an open-source program Myth: a freeware is an open-source program Links: Myth: a freeware is an open-source program Truth: A freeware is a program or software on which the author has a copyright on and has decided to... en.kioskea.net/faq/sujet-383-a-freeware-is-an-open-source-program

Résultats pour Copy a VB program to startup

VB6 vs VB.NETHello, I am a VB6 programming my all project are developed in VB6. Why show i switch to VB.NET ? Whats new features in VB.NET? if i can easily make project in VB6 so why to switch to VB.NET. Also tell me is there any ay to covert my source code of VB6... en.kioskea.net/forum/affich-5049-vb6-vs-vb-net
Pretty Basic Excel Macro HelpHello, I am writing a macro (which will be used to create a VB6 program) in Excel 2003. The spreadsheet Update_Log is a database with 9 user input columns and 7 columns which are calculated by formulas based on user input. I need to create a macro... en.kioskea.net/forum/affich-15106-pretty-basic-excel-macro-help
Dvd burner seen as cd burnerHello, I have a DVD burner installed in my comp. It works fine for reading but when I try to use any copy DVD programs its says DVD not present. When I call up my computer to check the drive its there but type is set to CD. Is there any way I can... en.kioskea.net/forum/affich-4496-dvd-burner-seen-as-cd-burner

Résultats pour Copy a VB program to startup

Download StartUp DelayerIf you are part of those who have to start their computer five minutes or forward to be able to work over!? Prove the programs which launch in kickoff, they can be the reason of this slowness. Startup Delayer is a program allowing you to throw your... en.kioskea.net/telecharger/telecharger-453-startup-delayer
Download RM-X Video CopyrightThe PC software allows you to tag your videos. RM-X ® Video Copyright allows you to display a personal message or a simple text on your videos. It lets you protect your works. The program offers an intuitive interface and easy to use. RM-X ® Video... en.kioskea.net/telecharger/telecharger-1053-rm-x-video-copyright
Download DVDSmith Movie BackupDVDSmith Movie Backup is the best manner of copying your DVD on your hard disk in a split second and with the slightest effort.Allow you to abolish all hanging protection copy it such as CSS, RC, RCE, APS, UOPs and Sony ArccOS. Program creates a clone... en.kioskea.net/telecharger/telecharger-615-dvdsmith-movie-backup

Résultats pour Copy a VB program to startup

Microsoft sues over brand in Dutch programme curbing kids on InternetMicrosoft offices in Herndon, Virginia. Microsoft is suing a company run by a Dutch mother because it had started using a Microsoft domain title in computer programmes aimed at curbing children's use of the Internet. Software company Microsoft... en.kioskea.net/actualites/microsoft-sues-over-brand-in-dutch-programme-curbing-kids-on-internet-10303-actualite.php3

Résultats pour Copy a VB program to startup

Windows NT - Security Policies Security policy is the set of all security rules that are to be implemented in an organisation, and the ways in which they are implemented. The user manager located in the Start Menu (Programs/Administration tools) contains the Policy tag, which... en.kioskea.net/winnt/ntstrat.php3
Processes - msgsrv32 - msgsrv32.exe msgsrv32.exe (msgsrv32 stands for windows Message Server) is a Windows NT/2000/XP generic process used for loading drivers and the program manager when Windows is started. This process runs invisibly in the background, and carries out several... en.kioskea.net/processus/msgsrv32-exe.php3
>Operating Systems - Windows - Tips and Tricks - Organising Files and Folders You can add shortcuts to files or folders in the Start menu by going to "Start/Settings/Taskbar and Start Menu/Advanced" (or by going to "c:\windows\start"). Windows 98 even lets you drag a program to the Start menu and place it wherever you want,... en.kioskea.net/win/winastor.php3