?? tryauto.c
字號:
#include <stdio.h>
#include <io.h>
#include <share.h>
#include <fcntl.h>
void main(void)
{
int handle;
int offset = 0;
int bytes_read;
char buffer[128];
if ((handle = sopen("\\AUTOEXEC.BAT", O_BINARY | O_RDONLY, SH_DENYNO)) == -1)
printf("Error opening AUTOEXEC.BAT\n");
else
{
while (bytes_read = read(handle, buffer, 1))
{
if (bytes_read == -1)
printf("Error reading offset %d\n", offset);
else
write(1, buffer, bytes_read);
offset++;
lseek(handle, offset, SEEK_SET);
}
close(handle);
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -