文件管理代碼
你下載的是一個類似於asp的鏈接文件,而不是你原本的文件!需要在伺服器端執行後才能到達正確的下載地址,所以最好點擊進入網頁獲得正確的下載地址例如後綴類似於rar的,再使用下載地址,如果不能獲取,就可能是伺服器出了問題。無法訪問了PHP是一種伺服器端HTML-嵌入式腳本描述語言。 其最強大和最重要的特徵是其資料庫集成層,使用它完成一個含有資料庫功能的網頁是不可置信的簡單。在HTML文件中, PHP腳本程序(語法類似於Perl或者c語言)可以使用特別的PHP標簽進行引用, 這樣網頁製作者也不必完全依賴HTML生成網頁了。由於PHP是在伺服器端執行的, 客戶端是看不到PHP代碼的。 PHP可以完成任何CGI腳本可以完成的任務,但它的功能的發揮取決於它和各種資料庫的兼容性。 PHP除了可以使用HTTP進行通信,也可以使用IMAP, SNMP, NNTP, POP3協議。
Ⅱ 誰有做過企業內部文檔管理系統的源代碼么。(類似致得文檔管理系統)
兄弟 源碼可以發分我么謝謝了 [email protected]
Ⅲ 文件管理的代碼
一、實驗目的 理解文件系統的主要概念及文件系統內部功能和實現過程。 二、實驗內容 採用二級文件目錄結構,編寫程序實現文件系統的文件存儲空間的管理、文件的物理結構、目錄結構管理和文件操作。 三、實驗要求 1、設計一個有m個用戶的文件系統,每個用戶最多可保存一個文件。 2、規定用戶在一次運行中只能打開K個文件。 3、系統能檢查鍵入命令的正確性,出錯時應能顯示出錯原因。 4、對文件應能設置保護措施,如只能執行、允許讀、允許寫等。 5、對文件的操作設計提供一套文件操作: CREATE建立文件; DELETE刪除文件; OPEN打開文件; CLOSE關閉文件; READ讀文件; 求用C或C++的程序編寫。
Ⅳ oppor7點開文件管理,文檔,裡面那麼多代碼能刪嗎
可以但你不知道那些是有用數據最好不要
Ⅳ 請教:手機文件管理中的文件夾中的文件能否顯示中文名稱,數字代碼實在分辨不出要找的文件。
可以,從設置里進入把原來的消了,重新輸入中文。
Ⅵ 操作系統課上做一個文件系統管理,誰能提供下代碼供參考
我有以前用過的,應該可以和用 你可以參考下 代碼太長我分兩部分發吧 ***********文 件管理系統***********/ #include <stdio.h> #include <stdlib.h> /*不容易歸類的標准函數庫*/ #include <conio.h> #include <string.h> #include <sys\stat.h> #include <fcntl.h> /*非標准文件輸入輸出操作的代碼符號屬性*/ #include <dos.h> #include <io.h> int init() /*初始化操作界面函數*/ {int i; clrscr(); gotoxy(23,3);printf("* * * * * * * * * * * * * *"); gotoxy(27,4);printf("FILE MANAGE SYSTEM"); gotoxy(23,5);printf("* * * * * * * * * * * * * *"); gotoxy(23,7);printf("NETWORK033 Cai Guiquan NO.1"); gotoxy(28,9);printf("1--Creat File"); gotoxy(28,10);printf("2--Delete File"); gotoxy(28,11);printf("3--OPen File"); gotoxy(28,12);printf("4--Write File"); gotoxy(28,13);printf("5--Locate File"); gotoxy(28,14);printf("6--Modify File"); gotoxy(28,15);printf("7--Copy File"); gotoxy(28,16);printf("8--Move File"); gotoxy(28,17);printf("9--Cataloge Manage"); gotoxy(28,18);printf("10--Exit File"); gotoxy(25,21); printf("Please Choice:"); scanf("%d",&i); return(i); /*選擇相應的序號,執行相應的操作*/ } main() {int x,i,j,flag=1; char name[15],name1[15],name2[40]; char choice,ch; int handle,status; /*定義文件的指針和狀態*/ FILE *fp; while(flag) /*初始化系統界面*/ {i=init(); getchar(); switch(i) { case 1:label1: /*創建文件操作*/ clrscr(); gotoxy(27,5);printf("CREAT FILE\n"); for(j=0;j<40;j++) printf("= "); printf("\n\nPlease input the creating file name and routine:\n"); scanf("%s",name); getchar(); handle=creatnew(name,0);/*按指定的文件方式創建文件,若有同名文件返回錯誤代碼*/ if(handle==-1) { printf("\nSorry,the file already exists."); getchar(); printf("\nInput again?(Y or N)"); scanf("%c",&choice);getchar(); if(choice=='Y'||choice=='y') goto label1; } else { printf("\nThe file is created."); printf("Do you now input contentof the file?(Y or N):"); while(1) /*輸入創建文件的內容*/ { scanf("%c",&choice); if(choice=='y'||choice=='n'||choice=='Y'||choice=='N') break; else printf("\nError!Please input again!"); } if(choice=='y'||choice=='Y') { printf("\nNow input content to the file(End with '#'):\n\n"); fp=fopen(name,"w");/*把內容存放到fp指向的文件中去*/ ch=getchar(); while(ch!='#') { fputc(ch,fp); ch=getchar(); } fclose(fp);getchar();/*關閉文件*/ } getchar(); break; case 2:label2: /*刪除文件的操作*/ clrscr(); gotoxy(25,5);printf("DELETE FILE\n"); for(j=0;j<40;j++) printf("= "); printf("\n\nPlease input the deleting file name and routine:\n"); scanf("%s",name); /*輸入要刪除的文件名*/ getchar(); printf("\n Are you sure?(Y or N):"); while(1) { scanf("%c",&choice); if(choice=='y'||choice=='n'||choice=='Y'||choice=='N') break; else printf("\nError!Please input again!"); } if(choice=='y'||choice=='Y') {status=access(name,0);/*獲取文件的狀態,是否存在*/ if(status!=0) {printf("\nSorry the file doesn't exist!"); getchar(); printf("\n\nInput again?(Y or N)"); scanf("%c",&choice);getchar(); if(choice=='Y'||choice=='y') goto label2; } else { status=access(name,02);/*獲取文件的狀態,是否存在並且是否只讀*/ if(status!=0) { printf("\nSorry the file is only read!"); getchar(); } else {unlink(name); /*從目錄中刪除一個文件函數,該函數在dos.h中*/ printf("\n\ndelete succefully!"); getchar(); } } } getchar(); break; case 3:label3: /*打開文件操作*/ clrscr(); gotoxy(27,5);printf("OPEN FILE\n"); for(j=0;j<40;j++) printf("= "); printf("\n\nPlease input the opening file name and routine:\n"); scanf("%s",name); status=access(name,0);/*獲取文件的狀態*/ if(status!=0) {printf("\nSorry the file doesn't exist!"); getchar(); printf("\n\nInput again?(Y or N)"); scanf("%c",&choice);getchar(); if(choice=='Y'||choice=='y') goto label3; } else { printf("\nNow begin to read the file:\n"); fp=fopen(name,"r"); ch=fgetc(fp); /*讀出文件到內存*/ while(ch!=EOF) {printf("%c",ch); ch=fgetc(fp);j++; } fclose(fp);getchar();/*關閉文件*/ } getchar(); break; case 4:label4: /*寫文件操作*/ clrscr(); gotoxy(27,5);printf("WRITE FILE\n"); for(j=0;j<40;j++) printf("= "); printf("\n\nPlease input the writing file name and routine:\n"); scanf("%s",name); status=access(name,0);/*獲取name指向的文件狀態*/ if(status!=0) {printf("\nSorry the file doesn't exist!"); getchar(); printf("\n\nInput again?(Y or N)"); scanf("%c",&choice);getchar(); if(choice=='Y'||choice=='y') goto label4; } else {fp=fopen(name,"w");/*以寫入方式打開name 指向的文件*/ printf("\nPlease input the information(end with '#'):\n"); ch=getchar(); /*重寫文件*/ while(ch!='#') { fputc(ch,fp); ch=getchar(); } fclose(fp);getchar();/*關閉文件*/ } getchar(); break; case 5:label5: /*定位文件操作*/ clrscr(); gotoxy(27,5);printf("LOCATE FILE\n"); for(j=0;j<40;j++) printf("= "); printf("\n\nPlease input the locating file name and routine:\n"); scanf("%s",name); status=access(name,0);/*獲取name文件指向的文件的狀態*/ if(status!=0) {printf("\nSorry the file doesn't exist!"); getchar(); printf("\n\nInput again?(Y or N)"); scanf("%c",&choice);getchar(); if(choice=='Y'||choice=='y') goto label5; } else {printf("\nPlease input the location:"); scanf("%d",&x); handle=open(name,O_CREAT|O_RDWR,S_IREAD|S_IWRITE);/*打開由name指定的文件,name既可以是簡單的文件名*/
Ⅶ 跪求一份完整文件管理系統的PHP代碼,要求請看問題補充!
你自己都懶的找,我也懶的找
Ⅷ 管理文件的編號怎麼編寫
(企業字母縮寫簡稱)—(文件類型)—(文件版次)—(文件編號)
如: LX-WI-A0-003 聯想公司--作業指導文件--第一版--第三份文件
再如 LX-QR-A1-009 聯想公司--表格類文件--第一次修訂版--第9份文件
以上為例子,可以改變縮寫 只要你明白字母的含義就好
Ⅸ 求樹形目錄文件管理系統源代碼 最好用C#寫 java也可以
程序截圖