I have worked with PHP and other programming languages but I am new to VB. I want to write an application that is run manually every day, and each time it is run it checks for modified and newly created files in a particular folder
I'm creating a simple .NET console application where I want to save a file in a folder that's part of the root project, like so: SolutionName.ProjectNameTestData. I want to put test.xml into the TestData folder. However, when I go to save my XDocument, it saves it to SolutionName.ProjectNameinx86Debug Console est.xml.
In vb.net how do you check if a ANY directory exists inside a directory I would need to know if there is a folder inside the c:windows directory (WITHOUT knowing if there is ANY directory is in there).
copying the file from one Directory to another directory by create the folder if that folder is not exists in destination directory.Example:
Source path: C: emp est1.txt destination path: C:Data if C:Data doesn't contains "temp" or "test" folder, it should create the folder before copy the 1.txt.[code]....
I'll tell you what I'd like to do which is to create a directory listing of every file inside a specified directory and then use a loop to upload each file in this directory to a remote folder via FTP.
I'm trying to get files from a directory and all the sub directory's to show in a checked list box. This is my first time working with arrays?here is the code
Public Class add_to_play_list 'IO.Directory.GetCurrentDirectory & "\x"' Dim Home As String Dim Fi As New ArrayList
[code]....
I have a sansa fuze and i have to make my own playlist for it so i want to have the program read the songs that are on there and show it to you in the list box and you can check off the ones you want then it will read the mp3 files to make the playlist, it needs the path, name, and duration from the mp3 file. i can get the name and the path so far...
I am trying to create a new user and set their password in AD LDS using asp.net vb. I'm binding to an instance of a directory entry, which is working fine. And I can add a user without a problem. The problem is that I can't seem to set the password when I add the user.Is this the right way to set the password
Is it possible (I'm sure it is) to validate a user's credentials against Active Directory without using Directory Services?I'm building a Browser-Based WPF application which requires users to login to and get validated via Active Directory. Since .Net 4.0 (or maybe 3.5) accessing Directory Services from an Application requires the application to be fully trusted. Since IE won't provide full trust to an application if it doesn't have the signing certificate in it's cert store, the application is refused startup permission.
If I don't use Directory Services, then I can leave the application as Partial Trust and validate my user's credentials without having to install a certificate on each user's machine.
I have a straight-forward task I'm attempting to accomplish. I have the mechanics down, and need to hammer out the details but I'm stumbling across one small point. :)
This script is supposed to take the files in the local C:Temp directory, and copy them to a selected user's shared directory on the file server.
Protected Sub btnCopy_Click(ByVal sender As Object, ByVal e As EventArgs) Handles btnCopy.Click My.Computer.FileSystem.CopyDirectory("C:Temp", "\MAVERICKVOL1Users" & ddlName.SelectedValue & "DESKTOPRECORDINGS", True) End Sub
This script does indeed work (and I'm aware I need to create exception handling) but it only copies what contents are on the server's directory of C:Temp rather than the local source directory.
I'm using VB.NET/ASP.NET to achieve this.
How am I able to direct my function to use the local user's directory rather than the remote server?
I am attempting to compare two directory trees. I have the program map the network drive and copy a directory. I need it to verify that the files copied successfully by comparing the source to the destination. If comparison returns equal then perform action1, if comparison returns unequal then perform action2.
In my asp.net page I'm making a copy of a file from my local drive to the server.[code]But when I run this code asp.net throws an exception:But I can browse to this file easily.
I am going to need to create a windows form for work that we can connect to a database table, select a directory and move files from the directory that are in the table and move to another folder. The directory will have sub directories that I need to search for the file name and move. I would like to have the table hold the file name (or path) and move all files that are in the database. There might be 20 files or 1000. Depends on the client we are processing for.
First off a short background of the project I am working on- I am developing a program that will be run off removable media (i.e. USB Flash drive). This will be a �virtual desktop� which you will be able to take with you and have the same �desktop� on any system. As we know drive letters can change with each host system the drive is plugged into, I need to be able to determine the path for the flash drive and access a specific folder ( i.e. My Documents)
I have an picture box(representing the icon) placed on my form (form1) and when I click the icon I want to be able to open and view the a specific folder from the portable drive. I need a click event that will determine a dynamic drive letter for a directory on the removable drive and then open that directory in an explorer window.
i am trying to move a file (test.txt) from say from:[code]I understand from the MSDN forum, i can use this File.Copy(pathA, pathB) OR Directory. Move(pathA, pathB) where pathA = C:folder_ est.txt and pathB = C:folder_ est.txt
I need to get the location/name of the directory that contains my application. I know I can get location of my app using My.Application.Info.DirectoryPath but I don't know how to get the directory above this. I can of course mess around with String.Split etc.. but I don't think that is necessary.
I have a FolderBrowserDialog box, and when the user selects a folder, I would like to scan that folder and its sub folders for these file types: jpg, gif, png Here is what I have so far:
All I am trying to do is write a simple program that will let me choose a directory and get a listing of all files in that directory and its sub-directories and show it in a RichTextBox. I got as far as being able to select the directory but when I click "OK" I get "access to c:documents and settingsstevedesktopmp3 is denied".The code I am using is listed below.
I am writing a program that expands the usage of the clipboard, but I need to tell when the user has either cut, copied, or pasted something so I can write code accordingly to that. I need to know how I can check to see when the user has entered a command like this.
I have a query I am creating a Window App in vb.net (4.0) in which I have to use multiple databases although all databases are same with same db structure & stored procedures,just names are different. In the very starting of application, I need to give a option to the user that these are available db & user will select which one to connect & use.
So is it possible to detect how many db are available in the SQL Server through vb.net & how can achieve this (to provide options to the user) What would be the best approach?
eg: there are listview1,listview2 and a button1 .u can send items to listview2 from listview1 .if the listview2 has an item button1 will enable if the listview2 is empty button1 will disable
what is the suitable event for this?? (there is an event called BindingContextChanged is it the suitable event?if so how to use it??)
In the app we use a third party dll for looking up names and addresses.This resides in the system32 directory.Before I try and access this dll I need to be able to find out if it has been registered on the PC.So in short does anyone know the code to be able to check if a dll has been registered in the registry?
I have a camera with a LiveView function (images aren�t snapped, but they are directly sent to my computer), which I managed to connect with VB.net, so I have got the image in a picture box on my form.The next thing I want to do, is to gather 3 spots from the image... The spots are all red, something very similar to #FF0000 (it is a camera + lights, etc... some tolerance needed). So, can anyone help me here?
I think the working "check list" could be something like this:
- Get red, green and blue channels separated
- Change green and blue into gray scale (100% blue / green = black, 0% b / g = transparent)
- Put these b / g both into 50% alpha and put them over the red (which means where is both green and blue = black, only one of them = 50% alpha black, none = transparent)
I was just wondering if it was possible to make vb 2008 detect if there is or is not sound.As in my project i want vb to detect when a video has stopped playing and then do something else. So i waqs thinking maybe i could detect when sound has stopped and then perform my other actions..