Solved

Takeown.exe language problem ?

Posted on 2013-01-31
3
520 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 500 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Ever notice how you can't use a new drive in Windows without having Windows assigning a Disk Signature?  Ever have a signature collision problem (especially with Virtual Machines?)  This article is intended to help you understand what's going on and…
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…
This video Micro Tutorial explains how to clone a hard drive using a commercial software product for Windows systems called Casper from Future Systems Solutions (FSS). Cloning makes an exact, complete copy of one hard disk drive (HDD) onto another d…
This tutorial will walk an individual through the steps necessary to configure their installation of BackupExec 2012 to use network shared disk space. Verify that the path to the shared storage is valid and that data can be written to that location:…

919 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now