How To Create Multiple Directories
Apr 6, 2010
I want to create multiple directories using VB.NET. All I am trying to read a text file which holds all the paths and file names some thing like:
c: est.txt
d: est est.txt
The code which I tried o write down is:
If File.Exists(fileLoc) Then
Dim objReader As New StreamReader(fileLoc)
Dim TextLine As String = ""
[Code]....
View 6 Replies
ADVERTISEMENT
Feb 22, 2011
I have been asked to transfer multiple directories and their files from one drive to another but using a different directory name i.e Source Drive equals a: and the destination drive equals s:CATE ResultsA380, plus the orginal directory and files must be added to the destination path.
View 3 Replies
Mar 5, 2011
how can i watch multiple directories with the filesystem watcher at the same time?
I am making a backup program that detects changes in certian folders and backs up the change
If it is not worth it, it is not fun - you say programmers are boring but i say they are worth it.
View 2 Replies
Jan 27, 2010
File I/O and Registry :: replacing single filename in multiple directories and subdirectories
View 5 Replies
May 18, 2009
I am new to VB but I do have VS2005 and I was looking at some code examples here on deleting files by days old and I need to do something similar, I would like to start a say C:myData**.xit and search through all sub folders under myData and move all the .xit files based on days old into a temp folder. Then I could verify them before I delete them manually to be safe. So how do I loop through all sub folders? and can I just modify this code to do that? Here is the code I was thinking about starting with [URL].
Dim files As System.Collections.ObjectModel.ReadOnlyCollection(Of String)
Dim singlefile As String
Dim CreatedOn As Date
'Declare the counter
Dim deletedcount As Integer = 0
[Code] .....
View 5 Replies
Jul 3, 2010
I wonna delete/create directorys on the FTP server and delete files. i have used my.computer.network.upload/downloadfile but i cant do much more whit that ..
View 5 Replies
Jul 29, 2011
This is currently the code I am using.
Dim fileList As Collections.ObjectModel.ReadOnlyCollection(Of String) = My.Computer.FileSystem.GetFiles(FolderDialog1.SelectedPath, FileIO.SearchOption.SearchTopLevelOnly)
For Each topLvlFile As String In fileList
[code]....
The above code reads all the files & directories in a selected path. It ignores any hidden folders, like it suppose to. Except it doesn't ignore folders inside of the hidden folders that it finds & I need it to.I can't quite wrap my head around how to make it ignore all folders & files inside of a hidden folder that it find.
View 3 Replies
May 3, 2010
[Code]....
it just creates 1 folder but not other folders with in folder.
View 1 Replies
Jun 19, 2012
I need to list all files folders, subfolders and subfolder files under a selected directory in a list box not sure how to do the logic in the last amount of code lines to enumerate all subfolders dna files.Here is what I have so far:
Dim OldProfileDir As String
Dim NewProfileDir As String
Dim Newdocs As String = ""
Dim Olddocs As String = ""
[code].....
View 3 Replies
Jul 11, 2011
Basically I'm going to try and develop a software that merges PDFs automatically using the PDFSharp API.What I want in the program is to basically that: Have the program to give and Input and Output directoryMerge all the documents in the directory or sub-directoryRename the merged PDF file according the the name of the directory/sub-directoryIf the folder has PDF files and a Sub-Directory I want to merge the PDF files in the folder and rename them as per the main folder, and rename the files in the sub-folder according to its name (i.e. seperate|)
It's the first time I'm using an API.The problem I have is how to use the directories and sub-directories as I need them.
View 2 Replies
Dec 29, 2010
If I have a large number of classes, each similar to the other in certain aspects (they all share a common base class, but each does things differently), and I need to create Windows forms for each to allow easy changing of their values through a GUI? Create one matching form for each object in VS' forms designer, Or Use code to create the forms dynamically at runtime.
#2 makes the most sense to me, because a lot of these objects will share very common features of the form, notably "Ok" and "Cancel" buttons. But one object might need to draw a textbox on the form while another might need to draw a combobox. Not to mention, if I want to put icons on the "Ok" and "Cancel" buttons, I'd have to do this for each copy of the form in designer, and that sounds like it could get out of hand quickly.But is drawing forms through code sane? VS' forms designer is pretty sophisticated and designed to make life easier. Am I wise to consider ignoring its functionality and diving into the trench warfare of forms design through code? Or are there examples of automating form creation based on an existing object's properties?
View 1 Replies
Jul 2, 2012
I know how to create a file, but would it be possible to create multiple files? the number I would like to create is determined from the number in a textbox, i.e., if the textbox had 2 then I would create 2 files, if it had 5 then I would create 5 files.
My code to create file
System.IO.File.WriteAllText("C:\Test.txt", "")
View 2 Replies
May 22, 2009
create an XML file from a large Oracle dataset. The Oracle dataset contains an ID column and a bunch of different address types. For example, An ID will contain a primary address, secondary address, and a bill to address. Each of the three address types can have multiple addresses but I'm only retrieving the first three.Currently, I'm retrieving three of each address type then joining all of the data together. If I continue with this method, I would have to loop thru the dataset to find the ID and then loop thru the dataset again to find each address for each address type. This doesn't seem very efficient and I'm wondering if there is a better way to do this. Is there a better way to manage the data on the oracle side so that I can have one row for each ID? Or is there a better way to handle this on the .net side with collections and manipulating datasets?
View 2 Replies
Jan 24, 2010
Is there a way for me to create multiple projects using different languages under 1 solution in VS 2008? If so, how?
View 3 Replies
May 13, 2012
I'm currently quite new to VB and am trying to create a multiple choice questionnaire for work. This is a depression survey in which there are 23 groups of statements with 4 options per group. Every time a patient clicks an option, the next set of 4 questions comes up on the screen.
I'm trying to convert the old VB4 code into the new VB 2010 code. Before we were using a control array and the code looks a little something like this[code]...
View 2 Replies
Dec 8, 2010
Is it possible to create a VB function with multiple outputs. Note: I am not looking for an array containing me three outputs or a variable using delimitters
View 3 Replies
Sep 25, 2011
I would like to know how i can create Multiple Search from database?
i find one way [URL]
when i will try to make like that its not created if any one can see to me what is the problem
View 2 Replies
May 10, 2011
I have a VB application where winsock is used. I want to convert it to VB.Net, so as I understand I should use System.net.sockets to do this.
But the problem is in the VB application multiple sockets are created by using the index feature of the winsock . example
Load Socket(isocket)
where isocket is an integer variable that is incremented each time, for a new connection request.
So how do I do the same, ie. open multiple sockets in vb.net?
View 1 Replies
Jun 6, 2009
How to create datatable with multiple records.
View 6 Replies
May 13, 2010
VB 2010 express. I have a situation where I want to create multiple list(of string), in a sub routine during run-time, where the list is available to other subs and functions in the same module, either to populate, edit or delete. The quantity of lists, names of the lists and their capacity will not be known until run-time. What would be the method and syntax for doing this?
View 3 Replies
May 10, 2011
How to create multiple sockets as an index
View 3 Replies
Apr 15, 2010
I'm trying to create a .dll in VB Express with multiple functions and subs.
For the .dll program, I create a class module with:
Public Class Class1
Public Function ReturnOne(ByRef MyVar As Integer) As Integer
[Code]....
Upon execution, it tells me that it cannot find the entry point in the .dll.
View 4 Replies
Oct 15, 2011
how can I create a grid with a cell with multiple data.I want to Display Product Name,ProductID and Price in one cell.How can this be done in VB2005. [URL]
View 2 Replies
Jan 15, 2011
Is it possible to create a multiple line string in vb.net?
View 7 Replies
Apr 21, 2010
which contains a combobox with two Gender options, Male and Female. When the form runs the user can select either male or female to perform a query. I made the ComboBox public and shared so that it can be viewed by other forms. On another form i added a ReportViewer and a dataset based on my database (MS Access 2007 database with 1 table named tblStudents). I don't have any problems when i try to run a simple query without parameters, but there is a problem with my
View 13 Replies
Feb 15, 2012
I am trying create a multiple reports using a single report viewer. can this be done, if yes can u give me a clue on hw to go on about it. i have done everything its just the part of having multiple reports
View 11 Replies
Jul 8, 2010
I've always had to use a program that does this stuff for me, but I'd like to just make my own program that does this. I've already got the individual bitmap images of the 3 sizes (16x16, 32x32 and 48x48) for the icon file and I usually find use some shareware program to create the icon file from the multiple bitmap images for me but I'm wondering if it's possible in .Net to create an icon file (*.ico) that contains multiple physical icons in it.
View 12 Replies
May 19, 2012
Okay so I've dug around all day and found that using multiple "background workers" would do what I would need for my application.How can I create 4 background workers and then feed the urls to the webrequest from a listbox? [code]
View 7 Replies
Mar 6, 2009
Okay, say I have a class named "ChannelList", and it raises an event named "FoundChannel"
But what I'M wanting to do is create multiple classes of different names that use that class, but I want to have all of the "FoundChannel" events be handled under one single sub routine?
View 15 Replies
May 3, 2012
First i am pretty new to coding and everything so yeah...I wish to make a distance and fuel calculator as my project. Included will be multiple combo boxes with different sets of information (The manufacturer of the vehicle, model of vehicle, the vehicles fuel use per 100Km, its transmission type, users choice of where they will depart from and arrive etc.) Is it possible to achieve this without using a lot of combo boxes? I've experimented using if statements for example:
if combobox1.selected item = "Holden" then
combobox2.visible = true (it's bad i know)
Then from this they would choose their model type in another combo box and then choose their transmission type etc..I don't want to use this because then it will mean i will have to do it for each and every combo box for each and every different set of data because making one 'visible = true' i will have to make the other 'visible = false' and this will cause problems when i start adding a lot onto it.
View 11 Replies