Visual Studio 2010 - Delete Folders And Containing Files?
Feb 11, 2010
My program actually downloads a zip file then extracts it onto their desktop. But I need an uninstall feature for it, which is basically deleting multiple folders and containing files. How can I do this in vb.net?
View 3 Replies
ADVERTISEMENT
Jan 17, 2011
I made an uninstaller which uninstalls certain application. However this application have lots of read-only files and folders and my uninstaller isn't able to remove any of them.
Here's the uninstaller code that I have:
Imports System.IO
Dim path As String
Dim tempstring As String
Dim totalbytes As Long
[Code] ......
View 8 Replies
Dec 10, 2011
I have a .exe in the mix with my .vb files in visual studio 2010 and I can't figure out a code to run it. I added it through the add existing if that means anything.
Form1.vb
Form2.vb
form3.vb
TEST.exe
View 2 Replies
May 16, 2012
I have a monster of a problem and don't know where to start. I need to create a simple application that will: have two open file dialog boxeseach file box, one can choose the .txt file to compareonce each box has a file location, click a button that starts. My boss man wants the results saved as :
[Code]....
View 5 Replies
May 23, 2012
I'm trying to create heirarchy of classes in vb.net. I was able to achieve it in csharp by using the following tags in .csproj
<Compile Include="ClassA.cs">
<DependentUpon>ClassB.cs</DependentUpon>
</Compile>
Below snippet in the solution explorer would be as follows
I need to achieve the same in vb.net.
I'm new to vb.net. Can anybody tell me the alternative of <DependUpon> attribute used in .csproj equivalent in .vbproj. For some reason, this attribute seems to be ignored in the .vbproj even though it is displayed in the visualstudio2010 intellisence.
View 2 Replies
Apr 11, 2011
Is it possible to open visual studio express files with normal visual studio?
View 2 Replies
Jun 18, 2012
I have created installer from Visual Studio Package and Deployment, but after successful installation, the installer files (like dlls, images and all supporting files) modified date or even creation date has been changed and all have the same date depends on the date of installation. Is there a way I can preserve or maintain it's original creation/modified date?
View 2 Replies
Jun 26, 2012
I'm writing a little app that I can tell to delete files older than x amount of days.
You select a folder and click go and it does the job but it only does the files within that folder. What I want to do is also delete all the files in all the sub folders. [code]....
View 1 Replies
Jan 17, 2011
I searched the forum for solving this issue, but couldn't find one. I made an uninstaller which uninstalls certain application. However this application have lots of read-only files and folders and my uninstaller isn't able to remove any of them. So I need a code that would do so. Here's the uninstaller code that I have:
[Code]...
View 5 Replies
Jan 17, 2011
I made an uninstaller which uninstalls certain application. However this application have lots of read-only files and folders and my uninstaller isn't able to remove any of them.
Here's the uninstaller code that I have:
Imports System.IO
Dim path As String
Dim tempstring As String
Dim totalbytes As Long
[Code] .....
View 4 Replies
Mar 6, 2011
I am trying to write data to a binary file using the Print() method, but when I run it I get the System.IO exception Bad File Mode.
Here's the code for the FileOpen declaration, that might have something to do with it?
FileOpen(filenumber, "path to file", OpenMode.Binary, OpenAccess.Write, OpenShare.LockReadWrite)
Print(filenumber, expression(variable))
View 1 Replies
Jan 21, 2009
I would like to know how to delete all files and folders under a certain directory. For example if I wanted to delete all files and folders in C:est how would I do that?
View 6 Replies
Jan 31, 2009
I Know how to delete files permanently like this
[Code]...
View 2 Replies
Jun 15, 2011
I'm developing an application in vb.net. You drag any type of file onto the exe, and a window pops up with some options for the file, then it saves the file to a different location, works some SQL magic, etc. It works great for the most part. The only issue I've found is that if the path of the file contains any spaces, the application will crash immediately with the error window:[URl]..I'm using: Private filename as String = Command$ This is located right inside my form's class declaration, not within a sub/function.Without this line, my program runs fine (although useless, without accessing the file).I've also tried (I think this was it, I don't have the code with me at the moment): Private filename as String = Environment.CommandLine So, in vb.net, is there a way to drag a file onto an exe and use that path name, even if there are spaces in the path name?
View 2 Replies
Jan 29, 2010
here is the code i use for adding folders to the treenode. it works great but i want a delete button for deleting both files and folders... and how can i make the treenode auto refreshing. or refreshing when exiting another form...
Private Sub PopulateTreeView(ByVal dir As String, ByVal parentNode As TreeNode)
Dim folder As String = String.Empty
Try
[Code]....
View 1 Replies
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
Feb 17, 2010
Will i be able to successfully install 2010 beta 2 side by side 2008? because i want to test 2010 features and some development toolkits such as silverlight while i don't want to uninstall my visual studio 2008 professional.
View 2 Replies
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
Aug 5, 2011
Does anybody know which version of Visual Studio 2010 contains the full set of Visual Basic SharePoint Templates? I am about to embark on a project to create Visual Web Parts to be used in a SharePoint report.
At the moment I am using Visual Studio 2008 and even though the WSPBuilder is installed none of the relevant SharePoint templates are present.Having searched SO and the web, most advise to install the templates via the Visual Studio command prompt: devenv /installvstemplates
Alas the Visual Studio command prompt is also missing from my VS2008 installation.So, the question remains: which version of VS2010 contains what I need for pain-free SharePoint development? There is a rather large price different between VS2010 Professional and VS2010 Premium, so can anyone tell me if the cheaper version (VS2010 Professional) contains all the Sharepoint templates?
View 3 Replies
Nov 25, 2009
I am just wondering how I can add Direct X references to Visual Basic in Visual Studio 2010 Beta 2. I cant find them in the .NET reference list, or the reference list, or anywhere. I downloaded the Direct X SDK for August 2009, but I can not add the .dll files to the reference list. Is there anything I can do to add them? I need the references for programming reasons.
View 5 Replies
Jan 15, 2012
I want to use "OpenGL" in my project. Is it possible to associate it with "Visual Basic" application developed in Visual Studio 2010? If yes then how can we do it.
View 1 Replies
Apr 20, 2012
I have a project in visual basic 2010 and want to convert it to visual studio 2010 so I don't have to chose the "open with" every time. Is there a tutorial on how to do this?
View 4 Replies
Sep 29, 2011
My VB project is growing (Visual Studio 2008) so I want to group code into 3 different groups, like "Main-2 "utilities" and "DB functions" for greater clarity So I crete a new .vb file and put functions there. Can't figure out how to refer to the functions in another .vb file. Ought to be a basic thing but I am stuck.
View 4 Replies
May 19, 2010
I used to have a nice little Visual Studio Add-In that allowed me to group files by simply right clicking on them.It used to modify the csproj file in the background and add the relevant attributes.
View 1 Replies
Mar 9, 2012
To reproduce the error I'm getting:Create a new Visual Studio 2010 ASP.NET web site in Visual Basic, targeting .NET 2.0Type "Public Property Test As String" Observe "Visual Basic 9.0 does not support auto-implemented properties." error Visual Studio 2010 is happy to use VB 10 against .NET 2.0-targeted Windows Forms applications, this only appears to be an issue with ASP.NET.Is there a way to force Visual Studio 2010 to use VB 10 when targeting .NET 2.0?
View 1 Replies
Jul 6, 2010
have just overlooked something somewhere...I am writing VB.NET stuff in VS2010 on Windows 7 64-bit. It seems to build by default for a 32-bit target, how to I tell it to make a 64-bit executable?
View 2 Replies
Feb 22, 2011
When I'm in VS2008, and I go to File > Open Project/Solution, it won't let me select a .vbp file type when I have it set to Objects of type "All Project Files (*.sln; *.dsw; *.vcw; *.rptproj; *.dwp" (it looks like it's cut off at that point). Why can't I open a .vbp file with Visual Studio 2008?
View 2 Replies
Apr 21, 2010
I'm working on a VB.Net project and using SVN. I noticed that every time I open my main form, Visual studio slightly modifies my .resx file, which means that I keep having to re-commit it.url...
View 1 Replies
Feb 24, 2012
i compile my project in windows form visual studio with flash file or .swf included? My project have many presentations, .txt included in the system. How to compile them to an executable file? I need to be my .swf file still on my .exe file
View 1 Replies
Mar 22, 2011
I have a code where I load a specific folder, but I also want to show the files within that specific folder. Anyone knows how?
vb.net
Public Sub LoadFolderTree(ByVal path As String)
Dim basenode As System.Windows.Forms.TreeNode
If IO.Directory.Exists(path) Then
[code]....
View 6 Replies