Jump to content

CD Browser - FileSelectFolder()


Recommended Posts

Making a CD Browser and I just need files that do not have an installer to copy to a drive or folder.

When I use FileSelectFolder() it can copy the files and folders into the destination folder, but when I try to click on a drive, it will not copy.

$select1 = Fileselectfolder("Choose Folder...","")
   if $select1 = "" then
      return ; <- Returns back to the CD Browser
   else
      dircopy("F:\CD Utilities\Deepburner1.0",$select1 & "\Deepburner1.0",1)
   endif

When I make a msgbox to see what the hell is happening, this is what it retrieved.

"C:\\Deepburner1.0"

Do I need to use StringTrimLeft, StringTrimRight, or something to do with Fileselectfolder so that when I click

on a drive, it will copy to the drive selected.

Edited by eynstyne
F@m!ly Guy Fr33k! - Avatar speaks for itself__________________________________________________________________________________________ite quotes... - Is your refrigerator running? If it is, It probably runs like you...very homosexually - Christians don't believe in gravity - Geeze Brian where do you think you are, Payless?- Show me potato Salad!__________________________________________________________________________________________Programs available - Shutdown timer[indent][/indent]
Link to comment
Share on other sites

Yes you do, try this...

$select1 = Fileselectfolder("Choose Folder...","")
   if $select1 = "" then
      return ; <- Returns back to the CD Browser
   else
      if StringLen($select1) = 3 And StringRight($select1, 1) = '\' Then $select1 = StringTrimRight($select1, 1)
      dircopy("F:\CD Utilities\Deepburner1.0",$select1 & "\Deepburner1.0",1)
   endif
Edited by Danny35d
AutoIt Scripts:NetPrinter - Network Printer UtilityRobocopyGUI - GUI interface for M$ robocopy command line
Link to comment
Share on other sites

I'll go try that right now...BRB

F@m!ly Guy Fr33k! - Avatar speaks for itself__________________________________________________________________________________________ite quotes... - Is your refrigerator running? If it is, It probably runs like you...very homosexually - Christians don't believe in gravity - Geeze Brian where do you think you are, Payless?- Show me potato Salad!__________________________________________________________________________________________Programs available - Shutdown timer[indent][/indent]
Link to comment
Share on other sites

Awesome it worked. Thanks a bunch Danny35d.

F@m!ly Guy Fr33k! - Avatar speaks for itself__________________________________________________________________________________________ite quotes... - Is your refrigerator running? If it is, It probably runs like you...very homosexually - Christians don't believe in gravity - Geeze Brian where do you think you are, Payless?- Show me potato Salad!__________________________________________________________________________________________Programs available - Shutdown timer[indent][/indent]
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...