Results 1 to 9 of 9

Thread: moving file and using common dialoger

  1. #1

    Thread Starter
    Member
    Join Date
    Jun 2010
    Location
    Nepal | Beni bazar myagdi,kalipul
    Posts
    39

    Question moving file and using common dialoger

    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.

  2. #2
    VB-aholic & Lovin' It LaVolpe's Avatar
    Join Date
    Oct 2007
    Location
    Beside Waldo
    Posts
    19,541

    Re: moving file and using common dialoger

    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.
    Insomnia is just a byproduct of, "It can't be done"

    Classics Enthusiast? Here's my 1969 Mustang Mach I Fastback. Her sister '67 Coupe has been adopted

    Newbie? Novice? Bored? Spend a few minutes browsing the FAQ section of the forum.
    Read the HitchHiker's Guide to Getting Help on the Forums.
    Here is the list of TAGs you can use to format your posts
    Here are VB6 Help Files online


    {Alpha Image Control} {Memory Leak FAQ} {Unicode Open/Save Dialog} {Resource Image Viewer/Extractor}
    {VB and DPI Tutorial} {Manifest Creator} {UserControl Button Template} {stdPicture Render Usage}

  3. #3
    Discovering Life Siddharth Rout's Avatar
    Join Date
    Feb 2005
    Location
    Mumbai, India
    Posts
    12,001

    Re: moving file and using common dialoger

    @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...
    A good exercise for the Heart is to bend down and help another up...
    Please Mark your Thread "Resolved", if the query is solved


    MyGear:
    ★ CPU ★ Ryzen 5 5800X
    ★ GPU ★ NVIDIA GeForce RTX 3080 TI Founder Edition
    ★ RAM ★ G. Skill Trident Z RGB 32GB 3600MHz
    ★ MB ★ ASUS TUF GAMING X570 (WI-FI) ATX Gaming
    ★ Storage ★ SSD SB-ROCKET-1TB + SEAGATE 2TB Barracuda IHD
    ★ Cooling ★ NOCTUA NH-D15 CHROMAX BLACK 140mm + 10 of Noctua NF-F12 PWM
    ★ PSU ★ ANTEC HCG-1000-EXTREME 1000 Watt 80 Plus Gold Fully Modular PSU
    ★ Case ★ LIAN LI PC-O11 DYNAMIC XL ROG (BLACK) (G99.O11DXL-X)
    ★ Monitor ★ LG Ultragear 27" 240Hz Gaming Monitor
    ★ Keyboard ★ TVS Electronics Gold Keyboard
    ★ Mouse ★ Logitech G502 Hero

  4. #4
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: moving file and using common dialoger

    Quote Originally Posted by bishaw View Post
    what are the uses of commondialoger.
    http://articles.techrepublic.com.com...1-5800282.html

  5. #5

    Thread Starter
    Member
    Join Date
    Jun 2010
    Location
    Nepal | Beni bazar myagdi,kalipul
    Posts
    39

    question

    Ok now i leaved about virus now what about use of commondialoger.

  6. #6
    Freelancer akhileshbc's Avatar
    Join Date
    Jun 2008
    Location
    Trivandrum, Kerala, India
    Posts
    7,652

    Re: question

    Quote Originally Posted by bishaw View Post
    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...

    Good luck...

    If my post was helpful to you, then express your gratitude using Rate this Post.
    And if your problem is SOLVED, then please Mark the Thread as RESOLVED (see it in action - video)
    My system: AMD FX 6100, Gigabyte Motherboard, 8 GB Crossair Vengance, Cooler Master 450W Thunder PSU, 1.4 TB HDD, 18.5" TFT(Wide), Antec V1 Cabinet

    Social Group: VBForums - Developers from India


    Skills: PHP, MySQL, jQuery, VB.Net, Photoshop, CodeIgniter, Bootstrap,...

  7. #7
    Hyperactive Member rajbdilip's Avatar
    Join Date
    Feb 2010
    Location
    Kathmandu, Nepal
    Posts
    263

    Re: question

    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
    A Young Self-Taught Programmer || VB6 | VB.NET (Visual Studio 2010) | Java |CSS | JavaScript | PHP | MySQL

  8. #8
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: moving file and using common dialoger

    Duplicate threads merged - please post each question (or variation of it) only once.

  9. #9
    Discovering Life Siddharth Rout's Avatar
    Join Date
    Feb 2005
    Location
    Mumbai, India
    Posts
    12,001

    Re: moving file and using common dialoger

    @Bishaw: Fresh Link From VBF

    http://www.vbforums.com/showthread.p...14#post3824714

    Combine it with SHFileOperation API and you will be just fine

    Give it a try and if you get stuck then simply post the code that you have tried and we will definitely help you...
    A good exercise for the Heart is to bend down and help another up...
    Please Mark your Thread "Resolved", if the query is solved


    MyGear:
    ★ CPU ★ Ryzen 5 5800X
    ★ GPU ★ NVIDIA GeForce RTX 3080 TI Founder Edition
    ★ RAM ★ G. Skill Trident Z RGB 32GB 3600MHz
    ★ MB ★ ASUS TUF GAMING X570 (WI-FI) ATX Gaming
    ★ Storage ★ SSD SB-ROCKET-1TB + SEAGATE 2TB Barracuda IHD
    ★ Cooling ★ NOCTUA NH-D15 CHROMAX BLACK 140mm + 10 of Noctua NF-F12 PWM
    ★ PSU ★ ANTEC HCG-1000-EXTREME 1000 Watt 80 Plus Gold Fully Modular PSU
    ★ Case ★ LIAN LI PC-O11 DYNAMIC XL ROG (BLACK) (G99.O11DXL-X)
    ★ Monitor ★ LG Ultragear 27" 240Hz Gaming Monitor
    ★ Keyboard ★ TVS Electronics Gold Keyboard
    ★ Mouse ★ Logitech G502 Hero

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width