Duplicate folder name, how is that possible?
I have a tricky issue. I have scriptet a little program, which will copy some files from a server to "public documents" $ServerSti = "\\servername\shared_folder\Systemfiler\" & $EnvVarUser & "\" $EnvVarUser = EnvGet("USERNAME") $LokalSti2 = $EnvProfAllUser & "\public Documents\" & $AvidType & "\Avid Users\" & $EnvVarUser & "\" if $EnvVarUser <> "Administrator2" Then If FileExists($ServerSti & $EnvVarUser & " Settings.avs") Then $kopi = FileCopy($ServerSti & $EnvVarUser & " Settings.avs",$LokalSti2 & $EnvVarUser & " Settings.avs",9) If $kopi = "0" then MsgBox(48,$MsgTitle,"Error!"& @LF & "Error message") Exit EndIf EndIf If FileExists($ServerSti & $EnvVarUser & ".ave") Then $kopi = FileCopy($ServerSti & $EnvVarUser & ".ave",$LokalSti2 & $EnvVarUser & ".ave",9) If $kopi = "0" then MsgBox(48,$MsgTitle,"Error!"& @LF & "Error message") Exit EndIf EndIf EndIf (Just a part of my script...) But the problem is, when the script start the copy job to c:\users\public\ it creates a new folder called "public folder". So now i have 2 folders with the same name at the same place. how is that possible? Have a look at my screenshot
September 7th, 2010 11:03am

I do notice that one file name has a capital "P" & "F" and the ohter folder has lower case "p" & "F". lower and capital letters have different ASCII values, so i can see it could be possible in this case. I dont know for sure that windows uses the ascii values of filename, just a guess.Runtime Research - Software Development, Cainrs Australia.
Free Windows Admin Tool Kit Click here and download it now
September 7th, 2010 2:05pm

Well, i have now edited my script, so now i have 2 folders with capital P & F... still 2 folders... hmmmm
September 8th, 2010 10:10am

Windows is not case sensitive... Just linux :) I would recommend to run chkdsk /f to check for logical errors, it should repair this problem. I would just backup the data from both folders (if possible) - who knows, which one will be removed/somehow converted :)
Free Windows Admin Tool Kit Click here and download it now
September 8th, 2010 2:27pm

Hi, Please understand that this issue is more script related. In order to get the answer effectively, it is recommended to submit a new question in Scripting Forums. Regards, Sabrina Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
September 9th, 2010 10:31am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics