You are not logged in.

#1 14 Jun 2007 10:37

Martell
Member
Registered: 14 Jun 2007
Posts: 1

%~pI in a script

Hello reader,

using

                                         for %i in (*.txt) do echo %~pi%i >> place.txt

in a cmd-box works well.:)

But using

                                         for %%i in (*.txt) do echo %%~pi%%i >> place.txt

in a scrip does not work at all.:(

But how can I get the local path in a windows-script?:|

Martell

Offline

#2 15 Jun 2007 17:41

Fen_Li
Member
From: Malang, Indonesia
Registered: 04 May 2007
Posts: 22
Website

Re: %~pI in a script

I have test your script and work properly..
smile
To get localpath use path command :
more ?..
http://www.ss64.com/nt/path.html
are you mean that ?..
-------------------------------------------
or you mean to get fullpath of file name : %~fI

Last edited by Fen_Li (15 Jun 2007 17:56)


G-Smart thing Smart

Offline

Board footer

Powered by