New Posts  All Forums:Forum Nav:

Copying files help in VB

post #1 of 2
Thread Starter 
Hi guys

I have made a little app that will scan through a drive and list the items that are over a certain size into a listbox. It will then copy the files that I select into a predetermined folder. Now im trying to make it so when I type something into a text box on the form of the app, it will create a sub folder with that name and then copy the files into that folder instead.
Example:

the folder specified is C:\docs, I want it so if I type a name, lets say NewFolder in a textbox, it will copy the file into C:\docs\NewFolder instead.

any suggestions?
post #2 of 2
Pseudo-code for it is..

- Navigate to the directory required...
- Once in the directory required...do these things:
- Check if you have write privileges.
- If you do then: create file directory with name from text box by doing this:
- If you entered text into the textbox once you hit enter...(placed a newline character at the end of the string)
Have an action listener that will then activate a response of creating a directory.

How to create a directory in VB: http://msdn.microsoft.com/en-us/library/9wzc03ze(v=vs.80).aspx

Detailed TextBox stuff in VB: http://msdn.microsoft.com/en-us/library/system.windows.forms.textbox.aspx#Y134
Intel build
(17 items)
 
  
CPUMotherboardGraphicsRAM
i7 860 gigabyte p55-ud6 gigabyte gv-n560oc-1gi Corsair Vengeance CMZ8GX3M2A1600C9 
Hard DriveHard DriveHard DriveOptical Drive
Crucial M4 WD Caviar Black WD Caviar Black LiteOn Lightscribe 24x 
CoolingOSMonitorMonitor
Thermaltake Frio Extreme CLP0587 Arch Linux x86_64 samsung 2243swx ASUS vs-248H-p 
KeyboardPowerCaseMouse
moditek led flex Seasonic 860Watt Platinum Antec Lanboy air razor death adder 
  hide details  
Reply
Intel build
(17 items)
 
  
CPUMotherboardGraphicsRAM
i7 860 gigabyte p55-ud6 gigabyte gv-n560oc-1gi Corsair Vengeance CMZ8GX3M2A1600C9 
Hard DriveHard DriveHard DriveOptical Drive
Crucial M4 WD Caviar Black WD Caviar Black LiteOn Lightscribe 24x 
CoolingOSMonitorMonitor
Thermaltake Frio Extreme CLP0587 Arch Linux x86_64 samsung 2243swx ASUS vs-248H-p 
KeyboardPowerCaseMouse
moditek led flex Seasonic 860Watt Platinum Antec Lanboy air razor death adder 
  hide details  
Reply
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Application Programming