Windows Server - max length filename
Asked By John A Grandy
15-Oct-08 06:53 PM
I understand the maximum length for a filename in Windows is 256 ... true ?
Is there any way around this ? Certainly people have need for apps that
use longer filenames, no ?
Any shells for Windows that somehow get around this problem ?
Windows
(1)
Grandy
(1)
Heh
(1)
Johnagrandy
(1)
Filepath
(1)
Robocopy
(1)
AFAIR
(1)
Apps
(1)
Pegasus \(MVP\) replied...
AFAIR, the limit is 260 characters. Some utilities (e.g. robocopy) are not
subject to it. I'm not aware of any shells that get around it.
Bill Grant replied...
I thought it was 255 characters.
Pegasus \(MVP\) replied...
You made me curious, so I ran a quick test. Here is the longest folder+file
name I managed to create:
D:\aaaaaaaaaabbbbbbbbbbcccc0\aaaaaaaaaabbbbbbbbbbcccc1\aaaaaaaaaabbbbbbbbbbcccc2\aaaaaaaaaabbbbbbbbbbcccc3\aaaaaaaaaabbbbbbbbbbcccc4\aaaaaaaaaabbbbbbbbbbcccc5\aaaaaaaaaabbbbbbbbbbcccc6\aaaaaaaaaabbbbbbbbbbcccc7\aaaaaaaaaabbbbbbbbbbcccc8\123456789012345678.txt
It's 259 characters long.
John A Grandy replied...
So , like I said , the max length for a filename alone is 256 ...
Bill Grant replied...
Well no, it is 255. .txt is four characters.
John A Grandy replied...
Heh ...
I am interested in the max filename length including any suffix.
I don't think it's reasonable to not include the suffix in the length --
there is no requirement that a filename include a suffix.
My tests show that :
filename max length = 256
filepath max length = 259
ANN: Out-of-band Security Update to be released 23 Oct-08 Windows Server Microsoft Security Bulletin Advance Notification for October 2008 http: / / www.microsoft.com / technet / security that Microsoft is intending to release on Thursday, 23 October 2008. Critical Security Bulletin (1) = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = Windows Bulletin - Affected Software: - Microsoft Windows 2000 Service Pack 4 - Windows XP Service Pack 2 and Windows XP Service Pack 3 - Windows XP Professional x64 Edition and Windows XP Professional x64 Edition Service Pack 2 Windows Server 2003 Service Pack 1 and Windows Server 2003 Service Pack 2 - Windows Server 2003
Win 2k3 x64 clients self update failing - Cannot register wucltui. Windows Server About 33 of 150 machines on this domain seem to have corrupt WUA installs it redownloads without issue. Then tried to replace the newer version wucltui.dll from c: \ windows \ SoftwareDistribution \ to c: \ windows \ system32, and self update does not try to download wucltui.dll (Update NOT required), but a WUA rollback. Any ideas? C: \ WSUS> netsh diag show os Operating System (Microsoft(R) Windows(R) Server 2003 Standard x64 Edition) WSUS Client Diagnostics Tool Checking Machine State Checking for update is required * ** ** ** ** ** 2009-02-02 14:32:10 808 348 Setup * Inf file: C: \ WINDOWS \ SoftwareDistribution \ SelfUpdate \ Default \ wusetup.inf 2009-02-02 14:32:10 808 348 Setup Update required for C: \ WINDOWS \ system32 \ cdm.dll: target version = 5.8.0.2607, required version = 7.1.6001.65 2009-02-02 14:32:10 808 348 Setup Update required for C: \ WINDOWS \ system32 \ wuapi.dll: target version = 5.8.0.2607, required version = 7.1.6001.65 2009-02-02 14:32:10 808 348 Setup Update required for C: \ WINDOWS \ system32 \ wuauclt.exe: target version = 5.8.0.2607, required version = 7.1.6001.65
update to sp2 problem Windows Server Hi I have a SBS2003 that has been neglected and needs some updates. It succeeded for section OnACPower.Section in Line 1 of PreRequisite 4.750: InternalFileName of C: \ WINDOWS \ system32 \ HAL.DLL is Not Equal To halcmpx.dll 4.750: Condition succeeded for section CustomHalUnisysBlock.Section in Line 2 of PreRequisite 4.750: InternalFileName of C: \ WINDOWS \ system32 \ HAL.DLL is Not Equal To Unisys CMP Server ACPI HAL 4.750: First succeeded for section CustomHalUniSysBlock.Section2 in Line 3 of PreRequisite 4.750: InternalFileName of C: \ WINDOWS \ system32 \ HAL.DLL is Not Equal To HALSRAAC.DLL 4.750: Condition succeeded for section CustomHalStratusBlock.Section in Line 4 of PreRequisite 4.750: InternalFileName of C: \ WINDOWS \ system32 \ HAL.DLL is Not Equal To halce52.dll 4.750: Condition succeeded for section Condition succeeded for section MDSTC.Check.Disabled in Line 7 of PreRequisite 4.765: C: \ WINDOWS \ system32 \ DRIVERS \ elxsli2.sys is Not Present 4.765: First Condition in Emulex.Driver.Compat for section Emulex.Driver.Compat.Check.Section in Line 8 of PreRequisite 4.765: C: \ WINDOWS \ system32 \ DRIVERS \ ql40xx.sys is Not Present 4.765: First Condition in Qlogic.Driver.Compat ADMT, 0x2. 25.421: SetDynamicDirectoryId: Failure while generating dynamic path, 0xf111 25.453: SOFTWARE \ Microsoft \ Windows \ CurrentVersion \ R2Setup is not Present 25.453: Condition Check for Line 1 of R2.Schema
CD Writing Wizard breaks after applying security policy Windows Server Using Windows 2003 Standard. Prior to implementing a custom local security policy, the CD Writing Wizard (native policy, so what else would be coming into play here? Any insight appreciated. Thanks. Steve Windows Server Discussions Windows Server (1) SeDenyRemoteInteractiveLogonRight (1) LSAAnonymousNameLookup (1) SeRemoteInteractiveLogonRight (1) RequireLogonToChangePassword (1) WinHttpAutoProxySvc (1) COMSysApp (1) SeInteractiveLogonRight Policy = 3D3, 1 MACHINE \ SOFTWARE \ Microsoft \ non-driver signing \ policy = 3D3, 1 MACHINE \ SOFTWARE \ Microsoft \ Windows NT \ currentversion \ setup \ recoveryconsole \ securitylevel = 3D4, 0 MACHINE \ SOFTWARE \ Microsoft \ Windows NT \ currentversion \ setup \ recoveryconsole \ setcommand = 3D4, 0 MACHINE \ SOFTWARE \ Microsoft \ Windows NT \ currentversion \ winlogon \ allocatedasd = 3D1, "0" MACHINE \ SOFTWARE \ Microsoft Windows NT \ currentversion \ winlogon \ allocatefloppies = 3D1, "1" MACHINE \ SOFTWARE \ Microsoft \ Windows NT \ CurrentVersion \ Winlogon \ AutoAdminLogon = 3D1
Updates Failing on PCs Windows Server Hello, I have WSUS 3.0 configured on my SBS2003 with ISA 2004. For do know: 1. I receive the following event in my logs on the server: Sounrce: Windows Server Update Cateogory: Clients Event ID: 13002 Description: Client computers are installing updates with a 788, tz: -0500) = = = = = = = = = = = 2009-01-23 07:23:08:484 1800 dd4 Misc = Process: C: \ WINDOWS \ System32 \ svchost.exe 2009-01-23 07:23:08:484 1800 dd4 Misc = Module: C: \ WINDOWS \ system32 \ wuaueng.dll 2009-01-23 07:23:08:468 1800 dd4 Service * ** ** ** ** ** ** 2009-01 6001.788 2009-01-23 07:23:10:343 1800 dd4 Agent * Base directory: C: \ WINDOWS \ SoftwareDistribution 2009-01-23 07:23:10:390 1800 dd4 Agent * Access type: No proxy Network state: Connected 2009-01-23 07:23:58:555 1800 dd4 Agent * ** ** ** ** ** Agent: Initializing Windows Update Agent * ** ** ** ** ** 2009-01-23 07:23:58:555 1800 dd4 Agent * ** ** ** ** ** Agent: Initializing global Agent * Target group: (Unassigned Computers) 2009-01-23 07:23:58:555 1800 dd4 Agent * Windows Update access disabled: No 2009-01-23 07:24:07:750 1800 dd4 DnldMgr Download Machine} 2009-01-23 07:24:34:119 1800 c18 Misc Validating signature for C: \ WINDOWS \ SoftwareDistribution \ SelfUpdate \ Default \ wuident.cab: 2009-01-23 07:24:34:681 1800 c18 Misc