Solved

Takeown.exe language problem ?

Posted on 2013-01-31
3
517 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
Comment Utility
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
Comment Utility
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
Comment Utility
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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

I had a question today where the user wanted to know how to delete an SSL Certificate, so I thought that I would quickly add this How to! Article for your reference. WHY WOULD YOU WANT TO DELETE A CERTIFICATE? 1. If an incorrect certificate was …
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…
This tutorial will walk an individual through locating and launching the BEUtility application and how to execute it on the appropriate database. Log onto the server running the Backup Exec database. In a larger environment, this would generally be …
This tutorial will give a short introduction and overview of Backup Exec 2012 and how to navigate and perform basic functions. Click on the Backup Exec button in the upper left corner. From here, are global settings for the application such as conne…

771 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

10 Experts available now in Live!

Get 1:1 Help Now