VS 2010 Adding Files To Archive?
Nov 11, 2010How i can do this? Add a path on my computer or the resources
View 3 RepliesHow i can do this? Add a path on my computer or the resources
View 3 RepliesI want to add/replace some files in a jar archive
View 2 RepliesHow exactly do you copy the content of a .rar/.zip file (from your resources) to an archive in the computer? (.jar - Java Archive)I mean without deleting existing data on the .jar file already. I use this code currently.The TestArchive is a .zip file, and when I press the button, it extracts the content of TestArchive to the .jar arhive, but deletes everything that was already inside the .jar archive.[code]...
View 8 RepliesI have a Listview and OpenFileDialog. I'm trying to add multiple files to listview but code is not working.
View 3 RepliesWhat to use for adding multiple attachment to a email. I'm using VB 2010.
First, I have a Form in my company web site to fill a reclamation ..... when you fill and send it, it convert the form into a PDF, save it in the client side "TEMP" and finally get the PDF and send it to a email..... that's perfectly fine. I add to the form the capability of attach multiple files with file upload to the same "TEMP" and displayed in a Grid View to remove or add files and send everything to a email, the attachment capability is working. Everything is working with the PDF not the files(attachments).
There is a way to get the multiple files from the "TEMP" folder and add it to some dynamically variable (array list, attachment collection, list collection, etc.) so all can be send to the email. I already know the way to put it into the email with the PDF.
The problem is to get the files and add it to the dynamic variable and that it work with the email. If the code is need it.
I'm working on a school project right now and I have everything fine except this one part of the project: "The audit and errorevent logs should be archived if they are larger than 5K and up you need to keep up to 3 copies of the files." I know how to read and write text files just fine, so I don't need help with that. What I don't know is how to archive a file based on file size, or how to keep up to 3 copies of the files?
View 2 RepliesHow can I make my application to extract files inside .rar/zip archive in application.startupPath directory!?
View 2 RepliesIs it possible for vb to extract files from tar(and put them back)? I found this but it says that Dim tar As New ChilkatTar <<<< ChilkatTar does not exist I am trying to edit one xml file(which is not compressed) but if i do that with notepad, the tar becomes corrupt
View 1 RepliesI'm adding labels at runtime to my form with a tag. Let's say I have 3 labels with the tags, "1", "2" and "3". I'm adding the tags by counting the labels + 1. When I remove a label with tag "2" from the form there are only 2 left. When I add a new label it will add a new tag "3", but that one already exist. So my "solution" isn't a very good one Although tag "2" is free, I want to give it "4". Any thoughts on how to code this properly?
View 2 RepliesI just need to set the archive bit on a file. I see the archive attribute in the FileInfo object which I would think allows me to read the state of the bit, but I'm not sure how I would actually set it.
View 2 RepliesWhat I need to know is how to archive UserControl inheritance with VB. I found some samples how to do this with C# and all of them work fine with C#. But when I try to translate this in VB I get an error (namespace not found) in my UserControl-XAML.
E.g. This link, Variant 1: [URL]
It seems to be easy in C# and impossible with VB.
This is my approach:
1) the class "TestBaseCtrl.vb"
Code:
Imports System.Windows.Data
Imports System.Windows.Documents
Imports System.Windows.Input
Imports System.Windows.Media
[Code] .....
Error message:
"The local.TestBastCtrl-type was not found. All assembly references have to exist and all assemblies, that are referenced, have to be built."
It seems to me that the compiler does not find the class in my namespace but I can assure that the namespace is as correct as it is in the C#-project. I need a UserControl to inherit from, there are several functions that should be integrated in all of my forms and I do not want to implement them in every form I want to create. If I get this working, I hope that this kind of UserControls will still be working within the CAL (Composite Application Libary)-Framework, but this will be another story for another day...
i am trying to create from vb.net code a 7zip arhive with password. I did that with winrar :
Dim ret As Long
ret = Shell("c:program fileswinrarwinrar a -ap c: est.rar -ptest c:1.txt c:2.txt")
But the same code doesn't work for 7 zip, i only manage to create the arhive, without password :
Dim ret As Long
ret = Shell("C:Program Files7-Zip7z.exe a c: est.7z c:1.txt")
I have this code to show percentage value of archive extraction. Now it shows 1-100% How do I make it have 2 more digits e.g 01.00-100.00% ? [code]
View 7 Repliesi found out that you can create a Archive but how would i add a password to it?i know this.
Dim di As DirectoryInfo = New DirectoryInfo(Application.StartupPath + "folder")
di.Attributes = FileAttributes.Archive
how to add in the pass now from that code ? or is it a different syntax?
ok if there is any way to open a file from zip archive without extracting it ?
View 6 Replieshow i can run .net framework on my pc tell me necessary requirements
View 3 RepliesI was just wondering if anyone had come across this issue before or anything. I just downloaded Visual Studios 2008 professional trial version (ISO) and when I try to run it or open it, I get a "The operation could not be completed. Access is denied." message. I tried doing everything.I disabled my antivirus, uninstalled a previous version of VS 2008, I still get this message.
View 4 RepliesIm trying to write a program that displays the content of folders to show files and directories using a treeview with images. I have acheived this and the code is below but what i would like to do is to remove all unwanted parts of archives.Display Example.rar and remove Example.rar, Example.r00, Example.r01 or Display Example.rar and remove Example#Part1.rar, Example#Part2.rar
The reason why i am trying to do this is because i am looking to set a loop that will copy or extract files in certain directories but the problem is with partial files is that full extractions are done to each individual part. Say for example there is 10 files to one archive, the extraction is repeated 10 times, for 20 files, 20 full extractions and so on
Imports System.IO
Public Class Form1
Dim tPath = "C:Documents and SettingsAll User"
[code]....
I'm using jmcilhinney's library (found here), with a few modifications to make it compatible with VB.NET 2008. Using this forum's search feature, I see that it has been noted that SharpZipLib does support adding files to existing archives, but jmcilhinney's library does not implement this feature, and I have no idea where to start in writing my own method.
View 3 Replieshow would I copy files into a jar, as well as delete folders from that jar. Would I have to decompile it then recompile it? Would sharpziplib do the trick?
View 1 RepliesI have a bunch of images loaded in as resources then i added a mediaplayer.resx file so i could keep the images separate... only now i have just discovered it doesnt? It still puts all images together, so i cant add multiple images with the same name? (needs to be the same name - its a filename)
how to add folders and images right into the project explorer.How do I then reference the images? are they just like files? so it would be app pathfolderimage.png ? WIll it add to the distibution like this?
how can i add all swf files from dir to player in vb by just selecting directory.and play it in shockwave flash player in vb...
i have tested a swf file and it is working fine now how can i achieve the above target
I have got an Xml like below. I want to "add" data in it. Tried alot of forums..
eg.<?xml version="1.0" encoding="us-ascii"?>
<!--Version 5.0.0.0 - 4/12/2011-->
<SalesReport>
[code].....
I'm trying to search a folder and it's sub folders for a file and add those files to a datagridview. I think the code I have is right but I need to get some of the files info, like the name and what not. since I've tweaked it it doesn't work.
[Code]...
I am having a problem where when I save some text to an XML file it overwrites originally what was in there, I want to be able to add to the file. The file looks like this:
<Incident>
<name></name>
<Department></Department>
<Incident></Incident>
[code].....
The program consists of a datagridview with data loaded from our sql server.Once in a great while, the up and down arrows on the scroll bar will be blanked out and I am not able to click on them. When I try scrolling using the scroll bar, the datagridview is resized instead of scrolling.
NOTE: This isn't a program I wrote, just one that I'm using. It was developed with VB 2005 Express, framework 2.0.
I have developed a VB.NET application that generates code in a specific format. It has a multitude of features and everything works great. I recently added the ability to save generated code to a text file as well as the ability to load those text files into the application. I am looking to add one last feature (perk). I want to include a bunch of pre-coded text files with the application, that new users can load and use immediately. As of right now I have the application creating the directory they will go in, but can't find anything on how to include the text files and have them placed in that directory. This application uses one-click deployment (in case that matters).
View 1 RepliesI am adding all of my files as resources into my project (so they will work on another computer) however, I have some videos that I added as a resource for playing with AxVLC and I can't seem to figure out how to get them to work. I'm getting an error :Error 1 Value of type '1-dimensional array of Byte' cannot be converted to 'AxAXVLC.AxVLCPlugin'.
View 7 RepliesI have a settings.ini file in the root folder of my application. Where in the project settings do I set it so that when i publish the project that this file goes with.When installed the settings.ini file must sit in the same folder as the .exe file.
View 5 Repliesi have a program that when you click a button it randomly gets a random line from the file and adds it to a textbox. Well when i give ppl the program it needs to have the .txt file in the same dir right.
But how would i add the file to the program itself ?
Or Add the contents of the file to the project ? maybe a class or something idk.