Open SQL - Create New Folders On Server

Mar 27, 2011

I'm new to visual basic, and need to make a simple program to create new folders on my server. is to connect my excisting SQL server database to this program. Should it be connected using macros, or using the data source-menu? My excisting SQL server has this placement on the server:

[Code]...

View 2 Replies


ADVERTISEMENT

How To Create A Program That Can List Files, Folders And Sub Folders

Apr 7, 2010

I need help with file enumeration. I'm trying to create a program that can list files, folders and sub folders locations in a log file for diagnostic purposes. After it searches it can open notepad and display the results. The problem I'm having is that I'm a beginner and not familiar with file enumeration.

View 14 Replies

Open .exe Files From Different Folders

Aug 17, 2011

i am making a program to open multiple .exe files. However, i want to make it on a disk, but every computer the drive letter for the dvd drive is different. Is there a way to do a wild card? [code]however this might take a while to search. Is there a fast way of doing this?

View 2 Replies

C# - Identify All Open System/Special Folders?

Jan 10, 2012

I am currently using the following to Get Path of all Open Explorer Windows:

foreach (SHDocVw.InternetExplorer j in new SHDocVw.ShellWindows()) {
if (j.Name == "Windows Explorer") {
ListView1.Items.Add(j.LocationURL);
}
}

But it doesn't return the location of special folders like Computer, Recycle Bin, Network etc. Is there a way to identify those folders so I can put the path on my own like shell:MyComputerFolder for Computer?

View 4 Replies

Open Properties Dialog Of Files And Folders?

Jun 17, 2009

I want it to show on click of a button on my windows forms application... I have not had any success in getting the dialog to show at all...

View 21 Replies

Moving Folders To Another Server

Nov 14, 2011

I am trying to achieve something which am doing very wrong, though the idea is present. I am trying to a move subfolders within a folder from the server the application is running to another server.

The code I have is shown below:
Private Sub MoveFiles()
Label2.Text = "F:New Folder (3)TestzippingutilityTestzippingutility1DailyCollection"
Label5.Text = "G:ippinyUtilityTestFolder"
Dim sFilename As String = ""
For Each myFile As String In IO.Directory.GetFiles(Label2.Text, "*.*")
[Code] .....

Problems:
1) myFile - reads files and NOT FOLDERS. This has to move folders instead.
2) ("fi.MoveTo ('destination')", - is not a sqlcommand and its not practically correct. If I ran it as it is, receive teh error message Sqlexception was unhandled. Incorrect syntax near 'destination'.

View 5 Replies

.net - Listing Folders In Folders - Then Creating Arrays In JS For Each Of The Folders ?

Jun 21, 2010

I have a directory structure as follows;

ad_folder
--folderA
--folderB
--folderC[code]....

at I do not know the number of or the names of the folders, they can be different in different cases, I only have the root path.how I can display folder contents in VB.net and the code worked but couldn't figure out how to create the arrays and display only folders within folders starting with "ad_".

System.IO.DirectoryInfo and System.IO.FileInfo to be used for getting the folders.A literal control can be used to create javascript arrays in ASP.NET. These js arrays can then be used on the client side.

View 3 Replies

Restart Machines Due To Stuck Files Or Folders Open?

Nov 3, 2010

I have been searching everywhere for help and cant find anyone or place nice enough to work with me.I work for a bank, and support 40,000 users as an admin on a team of about 20 people.We are always having to force log off users out of SQL and always having to restart machines due to stuck files or folders open, or for troubleshooting purposes. So i am working on an application that will log off and shutdown users from the network.I have the log off from SQL completed.However i am having trouble with the line for restart.I started off trying the shell command Shell("cmd.exe") and now i have switched over to Process.Start("shutdown")

If you have any admin experience on a full blown network or wan, you know that when using cmd or run the syntax is:shutdown -m \computername -r -f -t 00 where m is for listing computer r is for reboot f is forcing apps closed and t is for timer.I have to pull the workstation from a textbox inside our tool. Or at the very least input the workstation to the command prompt So when i try and place this into vb i am using this:

Process.Start("shutdown", "-m \""" & TxtBoxWorkstation.Text & """-r -f -t 00")However the whacks(backward slashes) are not correct in the code.Im trying to figure out where the whacks go in the line of code.Im not getting any errors in vb, but when the cmd prompt loads it does not initiate the command correctly because the whacks are in the wrong location

[Code]...

View 3 Replies

VS 2008 Display Open Files And Folders Within Application?

Oct 6, 2009

Am looking for away to have an area in the application window to display the open files and folders basically what�s open on the task bar.Also if the above is possible is there away to have this clickable so if something is minimized it will open upon clicking it.

View 1 Replies

VS 2008 Intercepting Requests To Open Files & Folders?

Jul 3, 2009

I'm trying to create something that will intercept requests to open a file or folder in Windows Explorer. So far, the only thing I can come up with is that I need to make a file system filter driver.

View 4 Replies

FTP Server - Get List Of Files And Folders

Sep 24, 2010

How can I get the filenames in a folder on FPT server. These must then view a listview will be shown (listview1) How can I obtain the names of the folders in a folder on the FTP server. These must be in a listview view to allow (listview2)

View 2 Replies

Have A Script To Be Able To Move All The Folders From One Server To Another?

Nov 8, 2011

I would like to have a script to be able to move all the folders from one server to another.. Tried the following script in a batch file:

move \194.111.12.183G:ippinyUtilityTestFolder*.* \194.111.13.181C:AutoCollectionReceivedFolder /m /e /y

It runs so quick, and at a glance shows

"the network path is not valid"

No folders are moved from G:ippinyUtilityTestFolder to C:AutoCollectionReceivedFolder.N/B: TestFolder has few folders underneath and I need to move folders over.

View 2 Replies

Get IP Addresses Of All Users That Are Accessing Folders On The Server?

Aug 3, 2010

I am trying to develop a small application that logs the IP address and or computer names of all the users [my domain or remote location] that accessed files or folders on the server.

View 1 Replies

View Contents Of FTP Server (files/folders)?

Aug 9, 2010

I'd like to use System.Net to connect to FTP Server and it does, but now i want to have a form to display the contents of the FTP Server (example: It shows the files and folders and allows the viewing of another folder, like an ftp client but not used for that)

View 3 Replies

VS 2008 Webclient Check Folders On Server?

Apr 21, 2009

I can download the files I want. However, the client has insisted on creating different folders which will contain the version number. So the name of the folders would be something like this: 1.0.1, 1.0.2, 1.0.3, etc.So the files will be contained in the latest version in this case folder 1.0.3. However, how can my web client detect which is the latest one?

View 3 Replies

Create Collection Of Files And Folders

Mar 18, 2011

I'm writing a program that takes all files and directories on a computer and puts them in a collection, where I add a collection to the Collection for a directory with the key being the name of it and a string containing the Name for a file under the collections added I do the same,

[Code]...

View 4 Replies

Create Folders Based On Filenames?

May 4, 2011

The code below creates multiple folders based on different file names and moves those files into the new folders. For example, files ABC and XYZ are moved into a newly created folder named ABC and XYZ. I want to advance the code to allow slightly different file names to go into a common folder. Example, I want file ABC_rock, ABC_soil, and ABC_water to be put into a folder named ABC still, AND file XYZ_rock, XYZ_soil, and XYZ_water to be put into a folder named XYZ. I do not want a separate folder created for ABC_rock, ABC_soil, and ABC_water.[code]...

View 3 Replies

Create Folders From File Names?

May 3, 2011

I'm attempting to create folders from various files within one folder, based on the file names - extensions. I found this code snippet from this link, however I'm getting a loader lock error ("Attempting managed execution inside OS Loader lock. Do not attempt to run managed code inside a DllMain or image initialization function since doing so can cause the application to hang.").

[code]...

View 1 Replies

Create Folders Inside The Folder?

Sep 1, 2011

I want to create a destination path having folders inside the folder.

[Code]...

View 5 Replies

Forms :: User To Create Folders?

May 28, 2009

I am having trouble with this code. Can someone tell me why the "Project Processing' section doesn't run at all? The 'Client Processing' section runs and executes find but it seems the 'Project Processing' section does not.[code]

View 2 Replies

How To Create An Arborescence Of Folders Tree

Jan 19, 2010

How can i create an arborescence of folders tree in vb.net?

View 1 Replies

How To Create Image Folders In Program

Jun 28, 2011

i am wondering how to create a work area that i can store images that i have saved or scanned in my program. and i would like a page number folder aswell so you can see how many pages are in each folder when you choose the folder. so i know what i want it to look like, i will have two group boxes one called work area, and the other called pages. so when i click the work area folder called mike, it will show that mike has 59 pages in his folder and i can scroll and click each page(number) to view it in my picturebox. i would like to be able to create as many work areas as possible. i just need to know how to get started

View 3 Replies

Avoid The Program By Create New Folders With Same Dll Files Name?

May 26, 2009

I am creating a form with the resources which I am creating a programming with languages. I have created three resources which the one that are ZH-CH (Chinese), el-GR (Greece) and en-US (English-United States). I have also built some texts in the resources so I have debugged the program. Everything seen to be is fine, but I find that some weird stuff in the project bin folder. I found that the program has created three folders (ZH-CH, el-GR and en-US) with the dll file in each folder (Project1.resources.dll), I have renamed each dll files name with each different name and I have moved them in the bin folder, so I have deleted three folders. I ran the program again and they have created the new same folders with the same name where it was.

I want to use the same dll files that I have renamed (like each of these: English.dll, Greek.dll and Chinese.dll) without placing them in the resources folder. Id find it so impossible to avoid the program by creating these new folders with the same dll files name without using the files that I have renamed them and placed in the project bin folder. do to find out where the information in VB.Net application that are making the program to create the folders with the same dll files name (project1.resources.dll)?

View 3 Replies

Create Folders Based On File Names

Jan 2, 2009

I have a directory with about 200 files in it. Is there a way to create a folder for each file with the folder name being the same as the file name minus the extension and then put the file in the folder.For example: Folder "test" would be created from file "test.doc". Then the file "test.doc" would be moved into folder "test".I have some experience with visual basic, and my thought process for this was: make a loop that brought in each file name > store as a variable > create folder with the name in the variable > remove the last four characters from the folder name > move file into the folder > clear variable > repeat.

View 9 Replies

Create Folders From Partial File Names?

May 4, 2011

The code below creates multiple folders based on different file names and moves those files into the new folders. For example, files ABC and XYZ are moved into a newly created folder named ABC and XYZ. I want to advance the code to allow slightly different file names to go into a common folder. Example, I want file ABC_rock, ABC_soil, and ABC_water to be put into a folder named ABC still, AND file XYZ_rock, XYZ_soil, and XYZ_water to be put into a folder named XYZ. I do not want a separate folder created for ABC_rock, ABC_soil, and ABC_water.

Dim strOutputLocation As String = "C:\Temp"
Dim rootPath As String = strOutputLocation
For Each filepath As String In IO.Directory.GetFiles(rootPath)

[Code].....

View 2 Replies

Create Folders With Current Time As Folder Name?

Oct 18, 2010

I have been trying to create folders for database backup purposes. These folders were to be based on the current date and time as the name of the folder.[code]...

View 8 Replies

Create 3 Folders (named As In,Proc,Error) In C:Ram Directory?

May 26, 2011

I need to create 3 folders (named as In,Proc,Error) in C:Ram directory. First I need to check for folder existence in directory. If any of them not present need to create missing folder. If all missed need to create all 3. Could anyone suggest a simple looping code in VB.NET for this requirement .

View 1 Replies

Create A Message Box To Delete Folders In 2010 Express?

Sep 9, 2011

Is it possible to create a Message Box to delete folders in VB 2010 Express?This is what I have-If MessageBox.Show("Do you want to delete this folder ?", "Enter Title", MessageBoxButtons.YesNo) = DialogResult.Yes Then End If ,modify, delete or add code so that it is possible to delete a certain specified folder?

View 4 Replies

C# - Setup Project Does Not Create File System Folders During Installation

Aug 31, 2010

I want to create personal folders during installation. I did the following steps:

Right click on your setup project ->
View -> File System
Right click on node "File system on

[Code]....

I know the above steps are correct and should work because i did it in the other application (solution) and worked fine. When i did same exact steps (of course i changed the folder name to be created), the application gets deployed but when i install, i don't get the Personal Folder under Documents? I wonder why did it work with my first solution and didn't work with the current one!

View 1 Replies

Create, Delete, Edit Files And Folders On A Remote Web Address?

May 31, 2009

i'm developing a program that must be able to create, delete and edit files or folders on a remote web address such as [URL]

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved