?
Solved

Takeown.exe language problem ?

Posted on 2013-01-31
3
Medium Priority
?
554 Views
Last Modified: 2013-02-08
Hello,

I use the "takeown" command in an elevated CMD or Powershell like this :

takeown /F .\MyFolderName /A /R /D Y

to take ownership of a full directory, but the command stops with this error :


INFO: The system cannot find the path specified. ( "D:\DataUsers\NetShare\Commandes\DOSSIERS\fourniture\photocopieurs\Location de  Photocopieurs\2008 copieurs couleur\Dématérialisation\Location maintenance photocopieurs - CSL_2008_CYhBZfNClM\0300 - Registre, Rapport, PV et décision\registre-retrait.pdf" )

Ok see the bold characters ? This is french characters "é" but in CMD it will be transformed into "," and in Powershell "é". Therefore, I cannot fully use takeown.exe and I'm stuck.

The operating system is a Windows 2008 R2 SP1 US with French language pack installed; Locals are set on French (all locals in Control Panel). Except the interface display.

Do you have any idea ? Thx !
0
Comment
Question by:SIGMAEXPLOIT
  • 2
3 Comments
 
LVL 5

Accepted Solution

by:
wshty earned 1500 total points
ID: 38838786
try the following command before you rund the takeown.exe via cmd:


chcp 437


or


chcp 1252



this could do the trick

regards
0
 

Author Comment

by:SIGMAEXPLOIT
ID: 38839621
Thank you I'll give you the point but I have I think a last problem.

I still get an error seen on log :

INFO: The system cannot find the path specified. ( "D:\DataUsers\PartagesReseau\DirectionCommandePublique\DOSSIERS\INTELLEC\MAITRISE D'OEUVRE\Aménagement esp extérieurs\Potager\projet initial\Dématérialisation\MOE aire de jeu résidence Potager - CSL_2008_bkWTiOE_Sd\0300 - Registre, Rapport, PV et décision\registre-depot.csv" )

I do not understand, this time...
0
 
LVL 5

Expert Comment

by:wshty
ID: 38867508
sorry for the delay i somehow missed your answer in my emails..

the path has 273 characters - windows supports up to 255 characters of path+filename length - you should shorten filename and path in general this seems to be a little folder-chaos...

regards
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

You might have come across a situation when you have Exchange 2013 server in two different sites (Production and DR). After adding the Database copy in ECP console it displays Database copy status unknown for the DR exchange server. Issue is strange…
I was prompted to write this article after the recent World-Wide Ransomware outbreak. For years now, System Administrators around the world have used the excuse of "Waiting a Bit" before applying Security Patch Updates. This type of reasoning to me …
This tutorial will show how to push an installation of Backup Exec to an additional server in both 2012 and 2014 versions of the software. Click on the Backup Exec button in the upper left corner. From here, select Installation and Licensing, then I…
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…
Suggested Courses

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question