Hello taiga.
So, maybe :
Process process = Runtime.getRuntime ().exec (
new String [] {
"chmod",
"g+w",
"./aiueo.txt"
}
);
"/hoge.txt" -> "./aiueo.txt"
2b
07/12/29 に 中山 太雅<email@hidden> さんは書きました:
> Hello.
>
> I have a problem about "chmod" command.
>
> I am trying to execute chmod command using java.lang.Process,
> for example:
>
> Process process = Runtime.getRuntime ().exec (
> new String [] {
> "chmod",
> "g+w",
> "/あいうえお.txt"
> }
> );
>
> but chmod command doesn't recognize NON-ASCII characters. Even if I
> give NON-ASCII-ESCAPED characters like
> /\343\201\202\343\201\204\343\201\206\343\201\210\343\201\212.txt ,
> it doesn't work.
>
> Does anyone know a collect way?
>
> Thank you.
>
> =======================================================================
> 株式会社ベビーユニバース 開発部 中山 太雅
>
> ■PDF小説「5年後のベビーユニバース」下記よりダウンロード!
> http://www.baby-universe.co.jp/company/dl.php?file=img/after5yearbu.pdf
>
> ・本社
> 〒251-0025 神奈川県藤沢市鵠沼石上1-13-13-304
> Tel : 0466-55-3000 Fax : 0466-55-3001
>
> ・IV : イノベーションビレッジ
> 〒252-0816 神奈川県藤沢市遠藤4489番 212号室
> Cel : 090-2422-1981(212号室内設置携帯)
> =======================================================================
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Java-dev mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/java-dev/email@hidden
>
> This email sent to email@hidden
>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden
This email sent to email@hidden