I'm need of some way of finding the UNC Path of a share via a script or command line or even a custom created program. I'm trying to automate deletion of users and the setup is a bit complicated.
Home folders are set up like this:
We create a folder on a Disk on a fileserver.When this folder is created, a share is automatically created on a lower levelThen the DFS Links are set up towards the newly created share.
Now, when deleting a user, I could just delete the DFS Folder, meaning that the target folder is the one being deleted. But since it's a share, that cannot happen.
I have an application that allows the user to conduct database backups and restores. The users had been using Windows XP, with network security that allowed users to read the registry. For restores, the installation path to the SQL Server named instance was easily found by looking up the instance name in the registry using
They have recently upgraded to Windows 7, and locked down the registry so that users can not read values from it. Is there a way (via code) to find the path to a named instance of SQL Server, so that the app can automatically place the database files (mdb & ldb) in the correct folder?
I have an Access database ubicated in the path: C:Documents and Settings obertoMy DocumentsVisual Studio 2008ProjectsDictionaryDictionaryDictionary.mdb But when I execute the instrucction: stringConnection=System.IO.Path.Combine Application.StartupPath, "Dictionary.mdb") the path where catches the database is : C:Documents and Settings obertoMy DocumentsVisual Studio 2008ProjectsDictionaryDictionaryinDebugDictionary.mdb
That`s is the reason why I am astonished because the insertions and updates in the database are made in this last path. Why having the database path in other path which isnīt inDebug works with this last?
There is a field in the database whose value is the StoredProc name with full path.for example test01.test.dbo.spGetData
test01 is the server name test is the database spgetdata is the SP
I am storing this in a variable
Session("GetSP") = objReader(1).ToString() (test01.test.dbo.spGetData) Dim Command As New Data.SqlClient.SqlCommand(Session("GetSP"), conn) Command.CommandType = CommandType.StoredProcedure
I always get an error cannot find the SP and it shows like this test.dbo.spGetData It is cutting of the servername test01 always.how can i get the full path.
Im looking for a way that if the program detect that for exemple the path "C:" is "true" then it will add , for exemple , "Hard Drive" in the checkedlistbox.
I want to find the path where is installed an exe file. How can i do this if that app is running/not running. I know the name of application. (Visual Basic.NET 2010)
I have vb.net application which is using Vistadb with following connection string. I am able to export data to excel also. But after exporting to report different than to application directory, program crashes and says that database not found in exported directory. i believe that there is something wrong in connection string but I van't find. [cpde]...
I started making a game in VB.NET, but I am stuck on the pathfinder. There are round objects. I want to know how to find a path get one object from one point to another (or at least as close as possible) without any collisions.
How can i loop trough treeview and get path of directory of each folder in the treeview?I have this code for adding a color to a treeview item, but it seems like its not possible to retrive the folder path...
HTML Code: 'add color to folder in treeview Private Sub RecurseNodes(ByVal
I want to create a button that opens a supplied word document in their standard word handler like office or openoffice. But how do you find the Location of the exe (Or its folder) and using it to open the Word Document.[code]...
I'm in Visual Basic to create an update center for the software I make.I must find out what the installation path of a program. Eg notepad (which I know), or another program.I can easily find the file of the updater (Application.ExecutablePath).
I'm programatically looking ito a .aspx file and getting the file class name declared in its CodeBehind. For example, when analyzing myFile.aspx I read in its Page Directive and found its CodeBehind equals "myApplicationmyPage.aspx.vb". Then I use the code below:
I'm trying to read a file on a SharePoint 2010.I am using Visual Studio Express 2010.I have looked at a number of different solutions but just can't seem to find the correct path to go down to ascertain the best solution.I only need to know how to download one file from a SharePoint directory.
I want to make a program which first of all check whether a serie of programs is installed, if a program is installed I would like to find the installation path, so I will be able to work with it further..My first though was to check in the registry, there is theinstallation path also mentioned right?Another possible way was to search all the harddrives for a specific .exe fil. If then the file is found, the program is installed, and you should be able to find the path to the found .exe file. This is more "secure", right? - Because not all program is registred in the registry right? (E.g. if you move it from another location, and doesn't install it).
i made a program that is associated with the .map file type. What I need to do is find out the path of the .map file that opened the application(including the file name for the .map file).
I am having trouble uploading any file to the path in the error message below. Does anyone have any idea what the problem is. I did some research on this and most sites say that the permissions need Read/Write access for the asp.net user. I tried this and I still receiver the error. Here is the error:
For example Error saving file education_calendar.pdf System.IO.DirectoryNotFoundException: Could not find a part of the path "d:inetpubaophaUploads". at System.IO.__Error.Here is my code for the click event. I am not sure what is happening here:
Private Sub cmdUpload_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdUpload.Click If IsPostBack Then Dim MyFileColl As HttpFileCollection = Request.Files Dim MyPostedMember As HttpPostedFile = MyFileColl.Get("File1")
I am having trouble uploading any file to the path in the error message below. Does anyone have any idea what the problem is. I did some research on this and most sites say that the permissions need Read/Write access for the asp.net user. I tried this and I still receiver the error.
Here is the error: For example Error saving file education_calendar.pdf System.IO.DirectoryNotFoundException: Could not find a part of the path "d:\inetpub\aopha\Uploads\". at System.IO.__Error.
Here is my code for the click event. I am not sure what is happening here: Private Sub cmdUpload_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdUpload.Click If IsPostBack Then Dim MyFileColl As HttpFileCollection = Request.Files Dim MyPostedMember As HttpPostedFile = MyFileColl.Get("File1") [Code] ......
In vb.net, when writting an application, I want to access a batch file that has been added to the project. My question is how to I find the relative path of this file to access it? I have used relative path on the ASP.NET side, but not on the application side. The properties that I am finding regarding the current directory and running directory and the likes are all for the bin directory its in. While I can use the CurrentDirectory() property and go up two parents (....) in the development environment, when I install the application, the structure is not the same. As in the output is in a single folder, not tiered.
Example. c:projectsMyAppindebugMyApp.exe is the running directory My file I want to access is at c:projectsMyAppvalidate.bat so "c:projectsMyApp" is what I am trying to capture.
Dim url1 As String url1 = "www.google.com" & GWP_NodeList.Item(i).SelectSingleNode("icon").Attributes("data").InnerText Dim webClient As New System.Net.WebClient Dim bytes() As Byte = webClient.DownloadData(Url)
[code]....
I get this error:
Could not find a part of the path 'D:UsersGlenn RuysschaertDocumentsVisual Studio 2008ProjectsUITestUITestinx86Debugwww.google.comigimagesweathersunny.gif'.
How on earth did it all of a sudden add the startuppath to my url?
This code gets all software that has an Uninstall Entry and it app path. However, given I have the app path, I do not know the name of the main .exe of the software. What ways are there to find the main .exe of a found application?
'Declare the string to hold the list: Dim Software As String = Nothing 'The registry key: