C#判断指定分区是否是ntfs格式
//Code to display help and optional error message,by Bas van der Woudepublic static int WriteError(Exception e)return WriteError(e==null?null :e.Mes s age);public static int WriteError( string errorMessage)string fullpath=Env ironment.GetCommandLineArgs( ).GetValu e(0).ToString( );string[]program=fullpath.Split( ‘\\’ );string exeName=program[program.GetUpperBound(0)];exeName=exeName.Substring(0,exeName.IndexOf( ‘ .’ ) );
IsNTFS,Version 1.00
Return‘errorlevel’0 if the specified drive is NTFS formated
Usage: ISNTFS drive:
Note:Returns ‘errorlevel’0 if NTFS,2 if not, 1 if not ready or invalid
Written by Rob van der Woudehttp://www.robvanderw oude.c omif( s tring.IsNullOrEmpty(errorMes s age)==fals e)
Console.Error.WriteLine( );
Console.ForegroundColor=ConsoleColor.Red;
Cons ole.Error.Write(ERROR: );
Console.ForegroundColor=ConsoleColor.White;
Console.Error.WriteLine(errorMes sage);
Console.ResetColor( );
Console.Error.WriteLine( );
Console.Error.WriteLine( IsNTFS,Version 1.00);
Console.Error.WriteLine(Return‘errorlevel’0 if the specified drive is NTFS formated);Console.Error.WriteLine( );
Console.Error.Write(Usage: );
Console.ForegroundColor=ConsoleColor.White;
Console.Error.WriteLine( {0}drive: , exeName.ToUpper( ) );
Console.ResetColor( );
Console.Error.WriteLine( );
Console.Error.WriteLine(Note:Returns 0 if NTFS,2 if not, 1 if not ready or invalid. );Console.Error.WriteLine( );
Console.Error.WriteLine(Written by Rob van der Woude);
Cons ole.Error.WriteLine(http://www.robvanderwoude.c om);return 1;
}
易探云怎么样?易探云最早是主攻香港云服务器的品牌商家,由于之前香港云服务器性价比高、稳定性不错获得了不少用户的支持。易探云推出大量香港云服务器,采用BGP、CN2线路,机房有香港九龙、香港新界、香港沙田、香港葵湾等,香港1核1G低至18元/月,183.60元/年,老站长建站推荐香港2核4G5M+10G数据盘仅799元/年,性价比超强,关键是延迟全球为50ms左右,适合国内境外外贸行业网站等,如果需...
Justg是一家俄罗斯VPS云服务器提供商,主要提供南非地区的VPS服务器产品,CN2高质量线路网络,100Mbps带宽,自带一个IPv4和8个IPv6,线路质量还不错,主要是用户较少,带宽使用率不高,比较空闲,不拥挤,比较适合面向非洲、欧美的用户业务需求,也适合追求速度快又需要冷门的朋友。justg的俄罗斯VPS云服务器位于莫斯科机房,到美国和中国速度都非常不错,到欧洲的平均延迟时间为40毫秒,...
近日快云科技发布了最新的夏季优惠促销活动,主要针对旗下的香港CN2 GIA系列的VPS云服务器产品推送的最新的75折优惠码,国内回程三网CN2 GIA,平均延迟50ms以下,硬件配置方面采用E5 2696v2、E5 2696V4 铂金Platinum等,基于KVM虚拟架构,采用SSD硬盘存储,RAID10阵列保障数据安全,有需要香港免备案CN2服务器的朋友可以关注一下。快云科技怎么样?快云科技好不...