Questions tagged [max-path]
38 questions
0
votes
2 answers
How can I get PowerShell's Get-ChildItem command to list files in a path longer than 260 characters?
When using PowerShell 5.1 and earlier in Windows and trying the list the contents of a folder using the Get-ChildItem command - where the folder path is longer than 260 characters - results in an "ItemNotFoundException" or the error "The specified…

DylanH333
- 21
- 2
0
votes
2 answers
Overcome Windows 7 shell MAX_PATH limit
If context menu key that launches some executable exists in Windows registry and the "%1" command line patrameter place holder is mentioned, the path this executable gets over GetCommandLine() is limited to MAX_PATH and in some cases Windows tries…

Paul
- 25,812
- 38
- 124
- 247
0
votes
1 answer
Can Mac's Automator scan a folders contents & lists the files that are over a certain length?
I work in media production at a university, we work on Mac systems, but our servers are windows based.
Illegal characters & long file names are causing us problems when transferring our production files to the server.
To prevent file transfers…
0
votes
1 answer
System.IO.DirectoryNotFoundException on File.Delete for a valid path
I wrote code to delete a folder with all its structure recursively.
I got System.IO.DirectoryNotFoundException on File.Delete for a valid filename that I got from Directory.GetFiles(path). I added File.Exists before and it tells me that the file…

Eric Ouellet
- 10,996
- 11
- 84
- 119
0
votes
1 answer
How to save files using Microsoft.Win32.SaveFileDialog with filenames longer than MAX_PATH?
I am trying to save a file:
Microsoft.Win32.SaveFileDialog dlg = new Microsoft.Win32.SaveFileDialog
{
FileName =…

naglas
- 462
- 1
- 6
- 16
0
votes
1 answer
Adding a backtracking algorithm for max coin collecting?
i have this psudocode for the backtracking to find the path backward from the cell(6,6).
If F[i − 1, j] > F[i, j − 1] then the path to (i, j) came from above.
If F[i − 1, j] < F[i, j − 1] then the path to (i, j) came from the
left. If F[i −…
user5859292
0
votes
3 answers
Why CreateDirectoryEx with long folder name is not working?
This is a sample code i have written to check if i am able to create a folder with name length greater than MAX_PATH -
wstring s = L"D:\\Test";
wstring s2 =…

Rasheduzzaman Sourov
- 1,375
- 2
- 15
- 36
0
votes
1 answer
Include dynamic URL in my URL without using query string?
ASP.NET 3.5, IIS7
In my Global.asax's Application_BeginRequest, I need to extract from the request's URL an entirely seperate URL that's been embedded in it without using query string.
The solution I came up with was to hex-encode the entire target…

lance
- 16,092
- 19
- 77
- 136