Dim HomePath As String'Win2k later SystemsIf GetOStype (). blnW2K ThenHomePath = Environ ("HOMEDRIVE") Environ ("HOMEPATH ")ElseHomePath = Environ ("windir") 'win9xEnd If'If there is no Quick Launch directory, createIf Dir $ (HomePath "/Application Data/Microsoft/Internet Explorer/Quick Launch", vbDirectory) = "" Then'If the directory is not saved, createIf Dir
-(unsigned long) seekToEndOfFile; // jump to the end of the file-(void) seekToFileOffset :( unsigned long) offset; // jump to the specified offset position of the specified file-(void) truncateFileAtOffset :( unsigned long) offset; // set the file length-(void) synchronizeFile; // file synchronization-(void) closeFile; // close the fileInstance code1 (add data to the file :):@ Autoreleasepool {NSString * homePath = NSHomeDirectory (); NSLog (@ "% @",
First, Nsfilehandle
The Nsfilemanager class mainly operates on files (delete, modify, move, copy, etc.)
The Nsfilehandle class mainly reads and writes the contents of a file
Second, the Nsfilehandle class processes the file the step
Create a Nsfilehandle object
To i/0 an open file
Close File
You can use Nsfilehandle to make a breakpoint continuation
Third, the code to implement the lookup function:
NSString *homepath=nshomedirectory ();
NSSt
/skype/phone:/d/programs/bazaar$ echo $HOMEDRIVEC: $ echo $HOMEPATH \dokumente und einstellungen\hartmut$ Echo $HOME/c/dokumente und einstellungen/hartmut$ git--versiongit version 2.9.3.windows.2$the environment variables $HOMEDRIVE and $HOMEPATH is set in the Windows environment. the $HOME is set newly for this shell with the input of $HOMEDRIVE and nbsp $HOM
NsfilehandleNsfilemanager class mainly for file operation (delete, modify, move, assign value, etc.) // to determine if there is a tagetpath file path, create no nsfilemanager *filemanage = [nsfilemanager defaultmanager]; BOOL success = [Filemanage createfileatpath: Tagetpath contents:nil attributes :nil]; if (success) { NSLog(@ "Create success"); }The Nsfilehandle class primarily reads and writes the contents of a fileNsfilehandle steps to process a file1: Create a Nsfilehand
Nsfilemanager:There are 3 folders in the sandbox root directory:1.DocumentsRecommend that the program create the resulting file and the file data generated by the app Browse is saved in this directoryThis directory is included in itunes backup and recovery2.LibraryDefault settings or other state information for the stored program1.CachesStore cache files, save persisted dataNot synced by itunesFiles that typically contain larger files and do not need to be backed up2.Preferences3.tmpStorage of t
Windows System VariablesDesktop path: Echo%systemdrive%%homepath%\ Desktop%homedrive% = c \ The partition where the system is currently started%SystemRoot% = C:\WINDOWS The directory where the system is currently started%windir% =%SystemRoot% = C:\WINDOWS The directory where the system is currently started%USERPROFILE% = C:\Documents and settings\sihochina Current user data variable%homepath% = C:\Documents
execution. You do not need to go to the PIP path at a time. The configuration method is as follows:The system variable, environment variable, advanced system settings, properties----"Path", click "Edit", add;; C:\Python27\ScriptsThe results are as follows:cmd command to execute PIP, the following shows the configuration success. Ps:cmd window needs to exit login againC:\users\administrator>pipUSAGE:PIP 2. Get the HomePath variable and create the%
end of the file
-(Void) truncateFileAtOffset :( unsigned long) offset; set the object length to offset bytes.
-(Void) closeFile; close the file
Append data to a file
NSString * homePath = NSHomeDirectory ();
NSString * sourcePath = [homePath stringByAppendingPathConmpone: @ "testfile. text"];
NSFileHandle * fielHandle = [NSFileHandle fileHandleForUpdatingAtPath: sourcePath];
[FileHandle seekToEndOfFile]; j
Files (x86) \unity\editor\unitywebplayer.exe Directory key value record is the installation directory for Unitywebplayer:%homepath%\appdata\locallow\unity\webplayerun. Directory key value records are the directories where the Unitywebplayer uninstaller Uninstall.exeQuery the information and operation status of Unitywebplayer plug-in in IE:Win7 64bit Internet Explorer9: Main Menu-Manage add-onsTo uninstall the Unitywebplayer plugin from the control Pa
) offset; Set the length of the file to offset bytes-(void) closefile; Close FileAppend data to a fileNSString *homepath = Nshomedirectory (); NSString *sourcepath = [HomePath stringbyappendingpathconmpone:@ "Testfile.text"];Nsfilehandle *fielhandle = [Nsfilehandle Filehandleforupdatingatpath:sourcepath];[FileHandle Seektoendoffile]; To jump a node to the end of a fileNSString *str = @ "Append data"nsdata*
) offset; Jumps to the offset of the specified file-(unsigned long long) seektoendoffile; Jump to end of file-(void) Truncatefileatoffset: (unsigned long long) offset; Set the length of the file to offset bytes-(void) closefile; Close FileAppend data to a fileNSString *homepath = Nshomedirectory (); NSString *sourcepath = [HomePath stringbyappendingpathconmpone:@ "Testfile.text"];Nsfilehandle *fielhandle =
prepare for update
-(NSData *) availableData; returns available data from the device or channel
-(NSData *) readDataToEndOfFile; read from the current node to the end of the file
-(NSData *) readDataOfLength :( NSUInteger) length; read the specified length data from the current node
-(Void) writeData :( NSData *) data; write data
-(Unsigned long) offsetInFile; get the offset of the current file
-(Void) seekToFileOffset :( unsigned long) offset; jump to the offset of the specified file
-(Unsigne
processing command: # for Freescale Imx53# The Vid/pid of the ADB device is 0X15A2, you can check this value in device Manager# author, CCL, 2012-05-22 Set ADBDEVICEID=0X15A2 #这个值可以改变成自己adb设备的ID, Query method, Device Manager inside the details of ADB device can be found. @if exist%homedrive%%homepath%\.android Goto direxistMD%homedrive%%homepath%\.android:d irexist@echo off@echo # >>%homedrive%%
= "one_command [; one_command;...]"]
Options Description (Default)
-----------------------------------------------------------------
Script file name (None)
Help on the command options (None)
Exec a set of commands (None)
-----------------------------------------------------------------
From help, we can see that his syntax is similar to the following:
1.3.1 run commands directly
$ Adrci exec = "show alert"
1.3.2 specify the script command
$ Cat/tmp/abc.txt
Show alert
$ Adrci script =/tmp/abc.t
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.