ҡդӶ ʵŧ 纺촨շ٨絴͵ ᷹ФѺ

͵Դҷҧ Inbox Ѻ

˹ѡ
-
VB 6/VB.Net
ASP/ASP.Net
Ѻ¤
¹ҹ Flash Movie
ռͺش  
 RSS Feeds
 ǹŴ RSS Reader ...   Download  RSS Reader

Forum - www.g2gnet.com
Webmaster - www.g2gnet.com
Visitors - Session views
 5 6 1 6 1 2 4

7 ѹҤ ..2549
78 Users On-Line.
Visitors - Page views
 8 9 7 3 8 6 7
1 Ҿѹ ..2551

Google   
g2gnet.com
Ҵѡ:  

èͧÿ ÷ÿ͹ (Virtual Drive) ... 555+

Category »  Ѻ¤
: Webmaster 26/7/2552   : 13:26
(ҹ : 30624) 
ؤաҹѹ㹻 ͧǢҹѹҧ ҷ ͼ١ͧ ж١ѹҡѺҴ¤纻Ǵ Ǵ㨨ԧBad command or File name س ¡Ƿ Ӫ شԧ (Ѻ ... 55555+) ҡҷͧشҹ´͹ Ǥ´Թõ դ Press any key to continue ... ҹЧᵡѹաФѺ 纹鹾ѹŢ ѡ Enter ҳ һ any ѡзչ ... 55555+

SUBST (Substitute ᷹, ˹ҷ᷹) Ѵ¹͡ ҹҵ DOS Version 3.1 (˹) öҹ騹֧ Windows Vista 繤觷 ҵ繪ÿ᷹ дǡ͡¡ҹ
¹͡ - External Command 觷١è Command.com ҧͧ DIR, CD COPY ... ͸ԺҹͤѺ Դؤ餧ҡͧǢͧ DOS ѹѡùѡ͡ () Ѻ

Dos Prompt (˹ҨʹФѺ ... ) ö SUBST /? (ͤ觢ͧкԺѵԡ DOS ǵ /?) ѹ Help ؤ¡͹ öҹ騹Ҷ֧ؤѨغѹФѺ ... ͧ
Syntax - ٻẺҹ
C:\>SUBST /?
Associates a path with a drive letter.

SUBST [drive1: [drive2:] path]
SUBST drive1: /D

drive1: Specifies a virtual drive to which you want to assign a path.
[drive2:]path Specifies a physical drive and path you want to assign to a virtual drive.
/D Deletes a substituted (virtual) drive.

Type SUBST with no parameters to display a list of current virtual drives.

ùҹ
ҡͧèͧÿ
SUBST K: "F:\ISA 2006"
;觹ºС Enter ö¡ҹ F:\ISA 2006 ҹҧ Drive K աҧ˹

ҡͧ¡ԡèͧÿ
SUBST K: /D
ء駷 Boot ͧ кԺѵԡ Windows ҵͧ觧ҹҹʹءǡѹ дǡѡ ѧ ... ֧͹ʹǷҧѺѹ ... 鹹

鹡Ѻǹ÷ӧҹ

ҧèͧÿ F:\ISA 2006 ͷ Drive K


Start --> Run ... о CMD ¡ᷡ Enter


COPY Option Ҵ 觾ͧ (ҡѧ) ҡ͡ ... ѹ
COPY CON VD.BAT ҧ VD.BAT ҡТ鹺÷Ѵ ͡û͹仼ҹ˹Ҩ (Console)
SUBST K: "F:\ISA 2006" ... Enter (ͻ͹شա)
ҡ顴 Ctrl Z ... 繡ش (Save and Exit)


ҡ Explorer ʴ VD.Bat ١ҧ ... ͡ Edit ͷӡ䢡ФѺ (㹰ҹ㨡ǡѹ)
Batch File ŷèاҹ () 繨еͧ繻Ш (§ӴѺ) ѡººԵͧ÷ӧҹҡѹ 繧ҹ Batch ҹ Routine ФѺ ... ͧ

Batch File ӧҹء駷кԺѵԡ Windows XP
óբͧ Windows 3.1/95/98/ME öӧҹҹ Autoexec.bat ·ѹ

Start --> Run ... REGEDIT ... (Ҩҡ Registry Edit)


价 ...
My Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run\
ҡͧҧҹ ͡ New --> String Value


¹ Key (ͧ¤Ѻ ... ҷѹͧСѹ)


鹡û͹ѹẺѵѵ


͹ (Value) ... c:\vd.bat


觡 Batch File ҧ кѹ˹ ѹӧҹ
ؤѨغѹ ੾оǡ Autorun ªͧҧФѺ㹡áᷡ ᴡѹкҧ

RESTART ͧ¤Ѻ

ŧҹèҧ ... ¤Ѻͧ ҵͧҫͿҧȴ ...

Conclusion:
ѺҹѡѲҫͿ ... ͧŧ«ԤѺ ҡѡ͡ ͺ͡Ѻͺ͡ ... ѡáҡ ͨͧ͡ Drive ͧ͡ҡ Drive ҧҹ óբͧ Visual Basic 仡觼ҹ
Shell "SUBST.EXE K: "F:\ISA 2006", vbHide ... ҡͧѹ Auto ء駷Դͧ ´ͧͧ Registry ¤Ѻ ... ͧ

͵ - g2gNet Dot Com
Ţ¹ҳԪ硷͹ԡ 0407314800231
CopyLeft © 2004 - 2099 g2gNet.Com All rights reserved.
Email: [email protected] . 08-6862-6560