Reading / Setting Archive Bit

Mar 12, 2010

I 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 Replies


ADVERTISEMENT

Copy Archive To Another Archive Without Deleting Existing Content?

Dec 24, 2011

How 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 Replies

Asp.net - Setting Cache As Datatable And Reading It?

Jan 7, 2011

how i see if my cache is empty all my syntax errors are coming when i am trying to see if the cache is null and if it is to run the stored procedure

If RadioButtonList1.SelectedIndex = 0 Then
If Cache["netcache"] = null Then
bcmd.CommandText = "yearlynetsales"

[Code].....

View 1 Replies

VS 2008 - Reading And Setting System Sound Volume

Dec 20, 2009

I am trying to write a countdown timer I finally succeeded with MSDN. I get to work whatever I wanted, but this drives me nuts: How can I read and set the volume control? I want, once my timer is run down to zero, read out the current system setting, then play a system sound using
Media.SystemSounds.Exclamation.Play()
Over time I like to ramp up the volume to 80% or until one clicks the Alarm off button (then stop the timer, no sound, and reset volume).

View 8 Replies

Setting/Reading Specific Values Of A Richtextbox Line To An Array

Dec 7, 2009

I have a button which reads a comma separated value file and loads it into a richtextbox. Each line contains comma separated chars.

Once the file is loaded in the richtextbox, i want to be able to select specific values from each line and store them into an array.

For example:
Line1: a,b,c,d,e

I want to be able to place only the values "b" and "c" into an array.

I was thinking something like creating a menu for the richtextbox which will be triggered on right click, then highlight the values I want, press right click and select 'place these values in an array'.

it doesn't have to be the way i proposed it, but it definitely must use a richtextbox.

View 9 Replies

How To Unzip Archive

Oct 15, 2011

How can I make my application to extract files inside .rar/zip archive in application.startupPath directory!?

View 2 Replies

VB Edit Tar Archive?

May 23, 2010

Is 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 Replies

Adding Files To A Jar Archive?

Jan 28, 2012

I want to add/replace some files in a jar archive

View 2 Replies

WPF - How To Archive UserControl Inheritance

Nov 26, 2009

What 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...

View 3 Replies

Create 7zip Archive With Password?

Jul 15, 2010

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")

View 4 Replies

Show Percentage Value Of Archive Extraction

Jan 11, 2011

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 Replies

VS 2008 Create A Archive + Password?

Oct 22, 2009

i 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?

View 5 Replies

VS 2008 Open A File From Zip Archive

Aug 31, 2010

ok if there is any way to open a file from zip archive without extracting it ?

View 6 Replies

VS 2010 Adding Files To Archive?

Nov 11, 2010

How i can do this? Add a path on my computer or the resources

View 3 Replies

Multithreading: Reading/setting Variables, And Passing Variables?

Mar 8, 2011

Question 1: What is the difference between "Background Worker" and "Worker Pool" as indicated within the MSDN samples provided.

Question 2: I noticed while using, AddressOf _Function_, variables cannot be passed; what would be an efficient solution to this?

Question 3: While using multithreading is it required to invoke before setting variables, or only form properties?

Question 4: While using System.Net.Sockets is it safe/efficient to use Application.DoEvents while waiting for new data; or would be using a Do While loop be fine without DoEvents since the action would be multithreaded? Note: there can be up to 2000-3000 sockets in use at a time.

View 10 Replies

.net - Computer Support Archive | Dream.In.Code?

Aug 20, 2009

how i can run .net framework on my pc tell me necessary requirements

View 3 Replies

Computer Support Archive Dream.In.Code

Aug 13, 2009

I 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 Replies

VS 2008 : Remove Archive Parts From List?

Jun 22, 2009

Im 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]....

View 1 Replies

VS 2008 Using SharpZipLib To Add File To Existing Archive

Aug 12, 2009

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 Replies

Vb2010 - Copy/Delete File & Folder In A Jar Archive?

Feb 15, 2012

how 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 Replies

DataGridView Glitch - Computer Support Archive | Dream.In.Code?

Dec 30, 2008

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.

View 2 Replies

Visual Studio Will Not Install - Computer Support Archive | Dream.In.Code

Mar 27, 2011

I'm running the string on "Can I run a VB.net application on a website"Nothing seem to work after trying to install web developer, it would not install. So i uninstalled VB express and tried to install Visual Studio 2008 which did not successfully install so I tried 2010 and still nothing. Why am I having problems installing Visual studio? Also I cant install windows xpsp3? error messages says not compatible?

View 2 Replies

Write Code To Read Several NMEA Ports And Format Data For Archive

Apr 17, 2010

I'm VERY new to VB, and haven't coded since the TRS-80 days. I;m attempting to write code to read several NMEA ports and format the data for archive. When I execute the following on a port with the device turned off, the readline instruction hangs. can someone point me in the right direction to handle this exception.

View 1 Replies

Setting Short Function By Setting Poker Game Points?

Aug 23, 2010

I need help and wondering if you can help me to get my first project...it's a hobby and wondering if you can get me code for this so i can see how it does it* Evaluate( ) Prints the evaluation of the hand to the evaluation Label.

o If IsFlush( ), prints "flush; "
o calls SetPipArray( )
o Uses a For Loop to go through pipArray. For each element, uses a Select Case statement to

[code]....

View 9 Replies

Setting Variables To Store User Setting For Applications

Feb 13, 2012

In our projects we use setting variables to store user setting for the applications. Moreover, with every latest version of the applications, we upgrade these variables to retain user settings.Normally, this works fine, but recently one of my end user reported an error i.e.Configuration System failed to initialize". The error is related to user.config file. Therefore we requested the user to send us his file.After received the folder, we noticed that it contains 3 files (3begfjb.newcfg,3begfjb.tmp and user. config). 3begfjb.tmp is an empty file, while 3begfjb.newcfg and user.config are identical files. We tried to open these files but the data in user.config isn't proper xml rather its unreadable formatted file.Do any you guys had experienced this sort of issue or any ideas how and what may have created these files and corrupted user.config file.

View 3 Replies

VS 2010 - Archive A File Based On File Size?

May 4, 2010

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 Replies

Reading, Then Using, Then Reading Text File?

Jan 2, 2010

I am working on a project in VB 2008 and need it to do this:Read first line from text file (using Openfile)Enter line into textbox on formDo some other codeThen Read second linefrom text fileEnter line into same text boxand loop until we have gone through text fileI am not sure how to read line by line from text file then enter it in textbox. I can open the Openfile and get the filename and everything, but I just am not sure how to read from it or enter that line into the textbox.Here is what I have, its not much but its a start:

Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Dim FileReader As StreamReader

[code]....

View 4 Replies

SyncLock / Multithreading - Child Thread Reading The Values Of _do At The Same Time As Another Child Thread Is Reading The Values

Nov 13, 2009

I have a dictionary object (let's call it _do) I am using to cache some values for use in a multi-threaded program. I have a single controlling parent thread, with a timer function _doTimer() which can kick off child threads with a new instance of class MyThreadObject in each. My parent thread has _do as a property and with each time _doTimer() gets called, it may or may not repopulate _do depending on cacheflag settings. I pass a reference to _do to each instance of MyThreadObject and those threads at some point read the values of _do but DO NOT write to it.

What I want is to ensure that the child threads do not try and read _do whilst the parent thread is writing to it. Same thing but very slightly different -> I also don't want the parent thread to write to _do whilst the child threads are reading from it. However there is no problem with 1 child thread reading the values of _do at the same time as another child thread is reading the values - so ideally I do not want each child thread to completely lock out read access, only locking out Write access.. The code is roughly like this:

[Code]....

View 3 Replies

.net - Setting Objects To Nothing?

Feb 24, 2009

If you have a sqlClient.sqlconnection object, in the cleanup code (finally block etc) do you dispose of the object or do you set it to nothing, or both?

I've always just called the dispose, and allowed the garbage collector to do its thing...

View 8 Replies

App Are Not Save Setting

May 4, 2010

My.Setting is working ! But when I add form to project then my app are not save Setting ! Now , how can fix it !

View 2 Replies







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