[2008] .Bat And VB Files?
Jan 18, 2009is There any similarity between Batch files and VB ? because the
Shell "shutdown -r -t"
IS similar to the batch code
@ehco off
Shutdown -r -t
So is there similarity between them?
is There any similarity between Batch files and VB ? because the
Shell "shutdown -r -t"
IS similar to the batch code
@ehco off
Shutdown -r -t
So is there similarity between them?
I am trying to create a program which will read the files that exist in a directory, and then write in a text file the specific information (full file name, date created)i have found several code in the site but i cant make it work, the machine i am running the code is XP and i am using VB2008.The code i have found is the following:
Imports System.IO
Imports System.String
[code].....
Having a slight permission problem with Win 7 I am guessing it will be the same on Vista but work fine on XP (yet to try)But my program is sitting in: C:Program FilesCompanyProgram And its trying to create new files alongside itself in the Program Files area but bombing out which I know is permissions. If I go there to create the file myself it comes up with a UAC prompt and when I hit allow it works fine but obv the program can't do that byiteslf so bombs out.Is there anyway I can over come that without the user having to grant admin rights to the program each time it starts or do I have to write data to another place?
View 4 RepliesI need to scan either a drive are folder and search for .theme .VStyle and shellstyle.dll and there folder/subfolder names.The code scans for all .Theme files on the drive or in a folder, when it finds it it stores the folder name that file is in and also the name of the .theme .
View 4 RepliesDim fc = My.Computer.FileSystem.GetFiles(Destination).Countto get the no of files from the directory D:Images9 (Destination=”D:Images9”). It returns the count including the system files present in that directory ex: Thumbs.db How can I avoid thihow to find (search) a particular file in the specified directory.
View 1 Repliesin the current project im making i've decided to add in some tools, 1 of which is a renamer based of a renamer app that already exists (called scdtoolz), i want to build my own version of it so i can learn some new things, and build a nice GUI version of it.[code]So what i have managed to determine is that the current app scans the folders contents for the CRC32 Checksum, and renames based of that, since the 456.bin's CRC32 Checksum was 2274F80B, and in the text file 2274F80B is found here 'WWF - Rage in the Cage (T-81015)(U)#2274F80B#'So now i have determined game identification is based of the CRC32 checksums, how would i go about coding a similar ap in vb.net?first i need to make the app scan a folder, but how to return crcchecksum? and then rename if check = XXXX? If MD4 sums are easier/simpler i can use those instead, im lookin at a few hash app sources now, so i think i can see how to get the md5 but not the crc32 yet, or how to rename the 2 files and folder based of the text file.
View 6 RepliesI have a question about the performance possible gains of using XML files in a VB.net 2008 windows form application. I am going to pass an XML file for parsing to an embedded resource file or into the release/debug configuration manager (app.config) file to be parsed by the same QuerySectionHandler. For performace wise, is there a preference of using an embedded resource file over the same xml in a config file?
View 3 RepliesThe .DLL is sfMPQ, it is used to open and manipulate MPQ Files .Also when i try to import it the error i get is:A Reference to sfMPQ.dll could not be added. Please make sure that the file is accessible, and that it is a valid assembly or COM component.
View 13 Repliessaving required files in vb 2008, zipping it, and sending it in to my teacher via emails. When I finish the program, I hit save as and put it in a new folder. I then zip it up using winzip, send it to my teacher through our school website. When she gets it however, she cannot open it and says I don't have all the required files. I can still open it on my computer, though, and don't know what I'm doing wrong. Any advice would be helpful on what else I'm supposed to do. If it helps the program that I am doing I have to get it from a zip file she sends us, re-modify it a little, re-save it, and send it back.
View 5 RepliesI have this basic code for cleaning up old files
Imports
System
Imports
System.Data
[code]....
The only variable is the directory path. I have the directory created and there are a few .txt files in there that should meet the criteria. However, when I run it in SSIS, I get the following error (short version) "The element cannot be found in a collection."
I recently upgraded from vb.net 2003 to vb 2008. I see that when I "Build" the application all of the program files are generated, must like with vb.net 2003. When I use the ClickOnce publish approach, a set of files are generated including the setup.exe. When I double click on the setup file, the program installs deep down in My Documents. If I navigate to that location there is a complete set of my application files along with some Manifest files and a Manifest folder.
I wish to package my program for installation using INNO Setup Compiler, because it is very flexible and allows me to add information and choices through the installation process. My question is - if I package the "Publish" set of files, should I be including the files that are generated and located in the "Manifest" folder? and if so, do these files need to be located in their own folder as was installed on my computer? Or can I simply add them to all of the program files?
"How to import or put Microsoft 3d Movie maker in VB 2008?"
I have searched in internet but got none.. I also tried to but I don't get it.
i tried to load .swf or .flv files in vb 2008 i can load image files in it by typing picturebox1.image = my.resources.nameofimage but if i try to type AxShockwaveFlash1.Movie = My.Resources.nameoffile
View 3 RepliesI've got a client/server communicating nicely using TCP to send text strings and to parse and act upon the messages at either end, but now I want to be able to send small files. I thought it would be as simple as reading the contents of the file into a buffer and sending that buffer as if it was a message but obviously not. When I retrieve the message at the client end I get "System.Byte[]" so its given me the variable type and not the actual contents of the array I thought I'd passed in!
My Sending code is this :
Public Sub SendFile(ByVal Filename As String)
Dim sw As IO.StreamWriter
Dim fs As IO.FileStream
[code]....
(NB I did search for this within the forum and found some examples but they just didn't fit very well with the framework of what I'm doing, such as creating a 2nd tcp channel to handle file transfers?
I need to upload a file and rename it. I have found a lot of code that uses the WebRequest for this. I was wondering if there is another method that logs in to the ftp server and will stay connected while I upload files. I am doing this for a webcam application and it seems another method would be quicker than using the credentials each time I need to upload and then rename the file.
View 7 RepliesBasically I have a known folder that is going to have some pictures in. All the pictures will be bmp for now (hoping to change it to jpeg shortly) and this directory will only contain that and nothing else.Basically I have a PictureBox on a form (pbImage) I also have a Next button and a Previous button.What I want to do is when the form is loaded read that directory and display the first image in the picturebox. Then using the Next/Previous button go through the images.I don't know how many images will be in the directory and I don't know what the names will be.
View 6 RepliesI have created some basic help instructions for my program. How or what should I do to present this to the user. I have a button set up for the user to click on, but what is the best way to present these help instructions to the user?
I know that on most programs that you press "F1" and the help files display in a nice form. I am not certain that mine need search capabilities since its only a couple of pages in length.
Right now, my app connects to a free file hoster to get some data. What are some better ways to host this "data"?
View 5 RepliesHow do I check if 1 file is the same as another file? For example, lets say I have to files. Both have the same name, but different contents. How would I "compare" the files and tell if they are the same or different?
View 3 RepliesI'm trying to count all the files in C: with this code that i have made.
Try
Dim searchResults As String() = Directory.GetFiles("c:", "*.txt", SearchOption.AllDirectories)
[Code].....
im trying to write an updater for my program and im checking the version by downloading a .txt file. however its coming out blank. this is the first time ive done something like this so i probably noobed something bad.[code...]
View 12 Replieshow I can encrypt .pdf files? I haven't been able to find something that will give me an idea of how to do it.
View 4 RepliesI am currently using a open source .dll to extract zip files but I was told .NET has this functionality as well. I can't find it anywhere though. Do I have to add it to the reference folder manually or something?
View 6 Repliesvery very inexperienced programmer here. just trying a practice program and it downloaded 4 Vb files;FRX file, VBP File, VBW File and FRM File.
i've gathered VBP is the project and FRM is the form and put them in the right places (i think) from what ive read from this thread[URL]...FRX and VBW locations? also it was originally created with Vb5 or Vb6 but will it work with my VB2008?
how i get just cover(no tags) picture of a mp3 file in vb.net?
View 1 RepliesI'm having a bit of trouble getting values from my .xml file.
vb.net
<Main>
<PrimaryFields>
<City>City Name</City>
[Code].....
What I basicly want is, a program with-Check boxs, user can check what they want to delete.The check box has to "tell" the button what to delete
Checkbox1= Temp
Checkbox2=Firefox History
Checkbox3=Firefox Cookies
[code].....
I have a folder and I would like all the files in that folder to get into a array.
But I dont know how to do it,
I was wander if someone have example class to create multilanguage application using INI?
View 5 Repliesi have made a little program , however [im new to coding] i dont know how for example when a user clicks file > software i would like the user to go to a program , which is saved in same file as of he vb application.Also how for my legal document can i make a pop up box ,not a msg box , with created by copyright.
View 39 Replies