-
Copy it to your own program directory first, and then:
private sub command1_click()shell " a -k -r -s -m1 c:\ c:\test", 1
end sub
The above is to compress the directory c: test to c:
-
Open an ActiveX DLL project and enter ::in class1
public sub rarit(byval sdata as string, byval filename as string) 'sdata is the file content, and filename is the path and main file name of the compressed file.
open filename for binary as #
write #1, sdata
closeThe above is written to a temporary file. If necessary, add the phrase kill filename to increase the greenness before the end sub.
shell & "ar m<5> -p(password) *rar" & filename
Copy the Winrar and above versions and the attached files to the root directory of the program if any.
end sub
private sub unrarit(byval sfilename as string, byval ufilename as string)
Copy the Winrar and above versions and the attached files to the root directory of the program if any.
shell & "unrar e -p (password)." & sfilename & " " & ufilename
end sub
Generate a dll file and click on the project-reference in the program you need to use to unzip it. Browse. Find this dll, make sure to return, and you can use :
rarit [data to be compressed], compressed and saved to (no need to add.) rar)] 'Compress.
unrarit [archive path + file name], unzip to (if it is *..)*, use the original file name to extract it to the root directory)].'Unzip.
-
This can be solved with a shell...
winrar has parameter commands··· Find it on the Internet!
Found the shell!@@ - parameter to package the file.
I guess that's how it should be... Look for it!
-
I have a dynamic library in the dllcache directory with a lot of ready-made declared grammar!
-
It is recommended that the landlord take a look at the usage of the copy b command.
-
How to package the VB program, thank you for a little more details,) Open the IDE, load your project, and click "Add-in Manager" under the "Add-in" menu.
2) Select "Packaging and Wizard" (the last item) in the pop-up form, and select "Load and Unload" in the loading behavior, OK.
3) Click the Add-in menu item again and click Packaging and Wizards.
4) Click "Package", select "Standard Installation Package", click Next all the time, and finally click "Finish" and "Close".
5) At this point, there will be a folder named "Packages" under your project folder.
6) Click "", click Next (2), and ask "Would you like to be included in this package?" , click "New Folder" Create a new folder in another location on your computer, click Next, click "Finish", click "Close".
7) Close the Packaging and Wizard.
8) In the folder you just created, you will install the program! (Three files: project name.)
cab Note: If it says "Reboot Required" when installing on other machines, it is usually the resource path referenced in your program is incorrect, please use the equal absolute path, if it doesn't work, it may be some. For other reasons, such as incompatible or non-existent dll file versions, please load all the libraries you use when packaging.
Problems you may encounter when publishing:
1. What kind of runtime libraries are needed to run VB programs?
2. Can I create an installation package that only installs the runtime library and controls? Yes.
3. How to encrypt the exe program generated by VB? It can be packed with tools such as UPX shell.
4. How to easily encrypt access files in addition to setting passwords? You can encrypt data in a table.
-
Provided that your program isn't inherently wrong, or that there are no third-party controls.
1. On the WIN7 operating system desktop, click the open Huai Cong Start button in the lower left corner and select the running option to enter. >>>More
Remove Hide Protected System Files and take a look.
Go to the "Command Prompt" and use the "attrib" command, remove the relevant attributes, and try again. >>>More
It's not the same! Files can be straightforward applications. >>>More
At present, the most used, the best evaluation of encryption software, is Feng Yuanzheng's endorsement of the "stealth man", permanently free, support a variety of win systems, can be in hard disks, mobile hard disks, U disks, ***, etc. to create a confidential space, from regular manufacturers, compared with personal software, more professional and formal. >>>More