Hello friends i've got and another problem how to move same exe file from one location to anoter and also what are the uses of commondialoger.
Printable View
Hello friends i've got and another problem how to move same exe file from one location to anoter and also what are the uses of commondialoger.
Two basic ways of moving a file:
1) Use VB's Name method, i.e., Name oldpath/file As newpath/file
2) Copy file & then delete source: VB's FileCopy & Kill methods.
Here's a quickie tutorial on the common dialog
If you run into problems, be sure to be far more specific. When you find some time, review the "HitchHiker's Guide" link in my signature below. It will enable you to help us better to help you.
@Bishaw: I have always preferred to use the SHFileOperation API to copy/move/delete files. See these links if you are interested...
http://www.vbforums.com/showthread.php?t=559089
http://www.vbforums.com/showthread.php?t=563553
Hope this helps...
Ok now i leaved about virus now what about use of commondialoger.
If you're asking about the CommonDialog control then, it is a control that can be used to display Open, Save, Color, Font, Printer dialog boxes to the user. For example, if you want your user to select a color, then you can display the Color dialog box (using CommonDialog control) and get a color that the user may picks from it. In the same way, you can display an Open dialog box, so that user can select a file of their choice, etc.
If you wish to know more about it, just Google it (like FireXtol said) or you can even search this forum to find so many examples...:wave:
Good luck...:thumb:
Welcome Bishaw to VB Forums.
Click the link below to explore about the Common Dialog. Its not much complex.
http://msdn.microsoft.com/en-us/libr...37(VS.60).aspx
Duplicate threads merged - please post each question (or variation of it) only once.
@Bishaw: Fresh Link From VBF ;)
http://www.vbforums.com/showthread.p...14#post3824714
Combine it with SHFileOperation API and you will be just fine :wave:
Give it a try and if you get stuck then simply post the code that you have tried and we will definitely help you...