|
INI file -
Can an INI file have a maximum length ?
I made 2 ini files. one is only 1 page long, the other is 50 pages long. When I try to read data with the GETPRIVATEPROFILESTRING-api, it returns the correct value from the 1 page long file, but from the 50 pages long file, he returns the default("").
Code:
tmpReturn = String$(100,0)
Default = ""
'The file with 1 page
File1 = "C:\myMap\inifile1.ini"
'The file with 50 pages
File50 = "C:\myMap\inifile50.ini"
'The strTemp variable will contain the value of "Key"
strTemp = GetPrivateProfileString("Heading","Key",Default,_
tmpReturn,Len(tmpReturn),File1)
'The strTemp variable will contain ""
strTemp = GetPrivateProfileString("Heading","Key",Default,_
tmpReturn,Len(tmpReturn),File50)
WP
Files - How do tell how big a file is -
Hi there,
How do files work? What i mean by this is, how does the computer know how big a file is? Is there a way, of making a file bigger than what it seems without effect the file, such as execution, etc? Basically, is there a way to make a 1MB file look like a 100MB Securing DBF File on a File level. -
Hello out there
Is there anyone who understand anything about DBF files????
Normally as far as I know, a *.DBF File acts as a free file on any file system.
Now, I would like to know if, it is possible to secure this DBF file using password to prevent un-authorise entry??.
E EXCEL VBA, Save AS VS Before Save Event -
Hi guys,
I'm having a little problem here.
I have a master excel file(file 1) that open another file(file 2).
File 2 have an before save procedure.
File 1 modify file 2 and try to save it.
But File 1 cannot save file 2. I' getting an error, file in use witch is true because Write to file help -
Hello,
I have a question, I have an external file I have a file I want to read from file the value eg. 2000 (the only value has the file) and then from VB .NET to send another value let say 1000 which I want to be added to the value of the file meanning the value of the file will beco File Manager -
How do I delete a file after a user sucessfully downloads the file from the IIS Web Server ?
I want to prompt the user with a dialog box to open the file from current location or save the file to the disk
The file to be downloaded maybe a .xls file or a .csv file
A vb script that executes an exe file -
I have a .Net MSI installer project that we would like to execute a self extracting winzip exe file (that's outside the msi file) from the msi file
One of the custom actions for msi files is to run a vbs file from inside the msi file, which means we're researching the possibility of Finding Average -
OK, Monday morning brain fog has got me.
I have the following text in a file. My task is to get the average throughput of each file type per hour. eg: - tiny-file occurs 3 times in the 10:00 hour, with three different throughput values - so the average throughput would be - 87.26
Simple file rename -
I'm trying to make a program that outputs an INI file. But while writing the file, i dont want to compromise the original. so i'm doing this
1 - read file.ini
2 - use/edit content
3 - write to file.tmp
4 - when done, rename file.tmp to file.ini (must over-write)
that way Opening a file with its app -
I want to be able to open a file from within my VB app, based on the file's extension (e.g. if the file is file.doc,the file would open in Word). This is basically the same behavior you get if you click on a file who has his extension registered in the file types.
Shell and CreateP passing file to an exe -
Hi there
I have a file called my.file.
This si then assiciated with my exe file so that wehn people double click my file, it ill run my.exe, .
But, my question is, how do i recieve the file in my exe.
what function is executed?
i presume that the file gets passed into th PHP - File Manipulation Question -
I'm new to php and I'm looking for File Handling information.
A quick search on the web seems to suggest that I can write to a file, open a file and even append to a file... but the only way they seem to actually get a file created on the server is to actually upload it.
Is there How to ADD/EXTRACT files to a .Res file -
I need to know a little more, how do i add files (my .exe and its dependencies) to a .Res file... and then how do i add that .Res file to another .Exe file that can UNPACK the files from the .Res file and run them...
So that I can send my users ONLY one .Exe file.... ??
I've read u conflict between cls and bas file -
I have a cls file and a bas file in my project and my class (in cls file) only work correctly if I remove my bas file.
Functions in my cls file is using the API declaration in my bas file instead of the API declaration in the cls file. How can I make it so that functions in my cls File names in the file menu -
I apologize for I know this must be in countless threads but I just didn't know what to serach for exactly.
When I load a data file into my app I then write a copy of the file name string in a list of the last 4 used files that is kept in an ini file, and I delete from it the oldest What is the best way to open Text File -
I am processing a text file where all I need to do is read in the record and create a new output file with a new format. What is the most efficient and quickest way to process this input file, i.e. opening file, reading file, closing file, etc.
Thanks,
Jeff
How to include a file in a project -
hi
i have to play a midi file, so i have added the mediaplayer component.
now before i play the file, i have to write the path of the midi file
so when i build the project, there are 2 files on the harddisk:
the exe file created and the midi file the if is deleted the program don File being written to -
Dear All,
I have an FTP process which fetches a file however the file is coming across empty and I beleive the reason why is that the users PC which saves the file hasn't finished writing to the file.
Therefore question is how I can see whether the file is in use or is ready for Add data to binary file -
I would like to add some data to a binary file and then later strip the data from a binary file at a later date.
What I am thinking is to take a file(Zip, Word, excel, or txt) and take the name of the file and add it to the file or append to the file. Then I plan on encrypting the User Form Password Question -
Hi,
Before i start, thank for visiting this threat.
Background
I have 3 Exel files. For example, the file names are A, B and C. A and B file is a date file, and the C file which i use it to summarize the A and B file, so each time when i open the C file , C file will take the d import dll file -
hi..
i got mifare software written in vb.
there are dll file, and a bas file. Seems that the bas file import/declare functions that provided by the dll file.
what is the really use of bas file ?
how can i extract functions in dll file by using c# ?
- i tried to import the dll File Handling in VB6.0 -
In my application, I want to read the contents of a .pdf file and put it in a seperate file and in the same file itself I want to add the contents of a .doc file. After adding it, I want to read the contents of the pdf file alone or .doc file alone whichever is selected from that Select File from File List Box -
Hi,
Could anyone tell me how I get the whole file name from a file list box.
What I need to do is to get the user to select a file from the file list box and this file will be sent out to other users.
My code is like this
mapi.attachment = fillistbox.filename
but its Whats A .CHI File -
I believe a .chm file is a html help file file or something related to that. The .CHI file may be a system backup while you created the file, or not, but the easy way to see if you need it is to move it and see if everything still works.
File Watcher -
I am writing an application (File watcher) in vb.net to monitor a directory whenever a zip file gets unzipped. the problem that I have, I need to know if the file is a file folder or just a file. I figured out everything that i need except how do I set the watcher to let me know the fi Getting Asp File name -
I'm working on a simple asp file, and I don't always know what the file name will be. (If the user decides to change it...) Is there a way I can return the asp's file name? (MyFile.asp) or have the asp file post to its self without knowing the file name?
Thanks if you can help me
A little file problem -
Hello everyone...
I have a little problem described below:
I am trying to download a image file/binary file using the Internet transfer control. It did transfer whole of the file in statechanged event but when I try to write it down to a file it always add few bytes to the file makin inet: internet transfer control -
When I retrieve a file using any method including
objFTP.Execute <site>, "Get <file> c:\<file>"
I always get a file that doesn't seem to be an ascii file. I know this because when I read this file the using Visual Basic's Statemen inet: internet transfer control problem -
When I retrieve a file using any method including
objFTP.Execute <site>, "Get <file> c:\<file>"
I always get a file that doesn't seem to be an ascii file. I know this because when I read this file the using Visual Basic's Statemen Securing animation -
I have one animation file which is created in Director. It is most important file. I have worked a lot on that file. If anybody copies that file that it can be use by him. I dont want to keep open that file on the disk. Is there any way to access that file from VB (OLE Object etc.)??? Extract embedded excel file from EML -
Hi,
I need to write a routine to read in an EML file an extract out of it the attached XLS file. The EML file contains the email header info and then the rest of the file contains the binary XLS file.
Does anyone know how to do this?
Thanks!
Attach exe to other file formats! -
Hello friends,
I am just asking this question out of curiosity. No bad intension. How people attach exe code to some other file format (for eg say txt file or scr file etc) So I think when anyone opens the txt file then the exe file starts execution. How can one do this?
How To Create A *.CAB File in VB6 Pro -
I am trying to make a CAB file in VB6 Pro, but I don't know how to!! I wish for the file to be compressed, viewable, programmable and also sequre for all users on any platform they are using. But I want only the CAB file that I wish to only let my project read and work with it.
In t Saving to file, file is locked how to unlock -
I am using text file saved in common delimintaer format,
I am running an extenal program to save the file (monday.txt which already exists at the time of trying to save it)
One of my data contol acces this file.
then i try to overwrite the existing monday.txt file it tells me file VC App <----------------> VB App -
I have a VC++ App which writes now and then to a file.
The VB App displays the contents of the file dynamically.
Presently the VB App reads the file every 10 seconds irrespective of whether the file was changed.
I need suggestions for implemeting a way by which I can read what is SCF file -
I had an entry in my registry in the run key to run EXPLORER .EXE (notice the space) and the file was a SCF. i opened it with notepad and it was like an INI file format. I deleted it cause i think it was an uncool file. What exactly is SCF file?
File Assositation, Opening file -
I have a file assosiation, and i want my users to be able to click the file and it will open up my app with the contents of that file loaded.
Cheers // ILMV
Renaming a File via VB -
After I retrieve a file using VB, I need to rename that file by appending the date and time to the file name. Then I want to save the renamed file in a different directory. Can anyone assist me.
Thanks
Protecting xml file -
Dear friends,
How do i protect a xml file.
Is there a way to lock the xml file so that others cannot change the source of the file since the file contains confidential data.
Thanks
adding dll into an exe file. -
Hi there,
I am using this dll file to make my program have xp style.
skybound.visualstyles.dll
No problems using it, however, there is a problem if the dll file is not together with the .exe file.
Is there a way to compile the dll into the exe file as well?
many many ma creating new text file -
Does anyone know how to create a new txt. file.
I want the user to type a file name and have the program save the file as a new empty txt file so that i can write data to it later.
Thanks,
Jeff
|