Click here to Skip to main content
15,886,919 members
Home / Discussions / C#
   

C#

 
AnswerRe: why cant I run powershell script from current directory Pin
Richard Deeming1-Feb-24 22:23
mveRichard Deeming1-Feb-24 22:23 
GeneralRe: why cant I run powershell script from current directory Pin
Sherzaad132913252-Feb-24 1:39
Sherzaad132913252-Feb-24 1:39 
AnswerRe: why cant I run powershell script from current directory Pin
jschell2-Feb-24 6:00
jschell2-Feb-24 6:00 
AnswerRe: why cant I run powershell script from current directory Pin
Sherzaad132913252-Feb-24 11:44
Sherzaad132913252-Feb-24 11:44 
GeneralRe: why cant I run powershell script from current directory Pin
Dave Kreskowiak5-Feb-24 7:05
mveDave Kreskowiak5-Feb-24 7:05 
GeneralRe: why cant I run powershell script from current directory Pin
trønderen7-Feb-24 4:49
trønderen7-Feb-24 4:49 
GeneralRe: why cant I run powershell script from current directory Pin
Dave Kreskowiak7-Feb-24 5:58
mveDave Kreskowiak7-Feb-24 5:58 
GeneralRe: why cant I run powershell script from current directory Pin
trønderen7-Feb-24 17:18
trønderen7-Feb-24 17:18 
But by keeping that old myth alive (stating unconditionally that "The max length of a filepath is 260 characters", with no reservation, like an absolute truth), you contribute to the problem. Lots of programmers believe that as long as they allocate a 261 char buffer for the file name, they are safe and can handle all the paths there are.

But they cannot. Windows software can create longer paths, as the OP experienced.

I would much prefer to make a reference to the long filenames, and add a warning: Beware that if the path exceeds 260 char, then software using old FAT oriented calls to obtain the file path might fail.

Trying to keep the solution to the problem secret, because some programmers is not aware of it, is no good way to bring the world forward. In my eyes, that is.

Religious freedom is the freedom to say that two plus two make five.

GeneralRe: why cant I run powershell script from current directory Pin
Dave Kreskowiak7-Feb-24 19:15
mveDave Kreskowiak7-Feb-24 19:15 
GeneralRe: why cant I run powershell script from current directory Pin
Richard MacCutchan7-Feb-24 21:35
mveRichard MacCutchan7-Feb-24 21:35 
GeneralRe: why cant I run powershell script from current directory Pin
trønderen8-Feb-24 6:21
trønderen8-Feb-24 6:21 
GeneralRe: why cant I run powershell script from current directory Pin
jschell7-Feb-24 5:31
jschell7-Feb-24 5:31 
QuestionShould 0.5 round up or down? Pin
Gerry Schmitz26-Jan-24 8:33
mveGerry Schmitz26-Jan-24 8:33 
AnswerRe: Should 0.5 round up or down? Pin
trønderen26-Jan-24 9:14
trønderen26-Jan-24 9:14 
AnswerRe: Should 0.5 round up or down? Pin
Dave Kreskowiak26-Jan-24 10:59
mveDave Kreskowiak26-Jan-24 10:59 
AnswerRe: Should 0.5 round up or down? Pin
Kenneth Haugland27-Jan-24 2:30
mvaKenneth Haugland27-Jan-24 2:30 
AnswerRe: Should 0.5 round up or down? Pin
jschell29-Jan-24 4:41
jschell29-Jan-24 4:41 
GeneralRe: Should 0.5 round up or down? Pin
Gerry Schmitz29-Jan-24 8:51
mveGerry Schmitz29-Jan-24 8:51 
GeneralRe: Should 0.5 round up or down? Pin
jschell30-Jan-24 4:49
jschell30-Jan-24 4:49 
GeneralRe: Should 0.5 round up or down? Pin
Gerry Schmitz30-Jan-24 8:03
mveGerry Schmitz30-Jan-24 8:03 
AnswerRe: Should 0.5 round up or down? Pin
Richard MacCutchan30-Jan-24 5:23
mveRichard MacCutchan30-Jan-24 5:23 
GeneralRe: Should 0.5 round up or down? Pin
Gerry Schmitz30-Jan-24 8:09
mveGerry Schmitz30-Jan-24 8:09 
GeneralRe: Should 0.5 round up or down? Pin
Richard MacCutchan30-Jan-24 8:20
mveRichard MacCutchan30-Jan-24 8:20 
GeneralRe: Should 0.5 round up or down? Pin
jschell31-Jan-24 4:51
jschell31-Jan-24 4:51 
GeneralRe: Should 0.5 round up or down? Pin
Richard MacCutchan31-Jan-24 6:43
mveRichard MacCutchan31-Jan-24 6:43 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.