In DLL, you sometimes need to use the main callProgramTo obtain the name and path of the calling program correctly. This must be distinguished from the name and path of the DLL itself!
This involves the use of the system. reflection. Assembly
Obtain the full path of database files using SQL statements
Select filename from master. dbo. sysdatabases where name = @ databasename
Some useful system stored procedures and usage---------------------------Obtain the SQL SERVER name.Select convert
var obj = document.getElementById (obj_id);Obj.select (); Window.parent.document.body.focus (); Directly on the code, if you do not add the 3rd line of code, the browser will report a denial of access, if you set the Internet Options, security,
Atitit.js Get upload file full path1. The default value can only get the file name: Security reasons: 12. the Firefox browser reads 13. HTML5 's file API 24. Workaround:: Using the applet plugin 25. Reference 31. The defaultvaluecan only get file
Under Win, code debugging or VS is the most convenient, when using vs open exe, vs need to quickly locate the file, in source Insght, write a macro, with a shortcut key implementation. But how do you do it in vim? Looked for again, did not find
When we look at the process that the system is running, sometimes we want to look at the details of the following process, including the absolute path, when the lack of PS is revealed, and the powerful top can only see the process name. What about
Use JS to get uploaded file name, not circulated online, with Path.substring (Path.lastindexof ('/') +1);
There are a lot of problems in this kind of work.
For example, the value value of the Firefox input form can be obtained by default, while IE
1. Declare the handler function and the message map in the form's header file. h, for example:[CPP]View PlainCopy
Class TForm1: Public tform
{
...
void __fastcall handledropfiles (tmessage &Owner;
...
Begin_message_map
When viewing process information through the PS and top commands, you can only find the relative path, the details of the process not found, such as the absolute path. At this point, we need to see the process details in the following ways: Linux
1. Check out svn CO/HTTP path (full path of directory or file) [local directory full path]--username username--password Password SVN co svn://path (full path to directory or file) [local directory full path]--username user name--password password
1. Check out:SVN co/HTTP Path [full path to directory over file] [local directory full path]--username username--password password;SVN co scn://path [full path to directory or file] [local directory full path]--username user name--password
Install subversionclient in Ubuntu:
Sudo apt-getinstall subversion-Tools
1. Check out
SVN Co http ://PATH (full path of folders or files) [full path of local folders]
-- UsernameUser Name
-- PasswordPassword
SVN Co SVN ://PATH (full path of
1
View current system hard disk and partition conditions
(Note: SCSI 1th hard drive/DEV/SDA in Linux, 2nd hard drive/dev/sdb, and so on) 2
Initialize partition SDB to physical volume PV
PVCREATE/DEV/SDB//initialization
Pvdisplay//Display physical
I. Introduction of LVMLVM is shorthand for Logical Volume Manager (Logical Volume management), which is a mechanism for managing disk partitions in a Linux environmentLVM-Advantages:LVM is typically used for systems with large volumes of disks, but
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.