If you are using a .CMD file, you can have a section that extracts the drive
letter of an argument and returns it in a variable. Here's an example:
@echo off
rem Batch file that echos the drive letter on all it's parameters
rem Yes, it's the hard way
:top
if "%1" == "" goto :eof
call :GetDriveLetter %1
echo Drive letter of %1 is %result%
shift
goto :top
:GetDriveLetter
set result=%~d1
goto :eof
"Dada" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi,
> i must use the logical letter where exist a specificated directory. It's
> possible?
>
> Es for run F:\app1 i must know the drive letter first., therefore:
> c:\cd 'Drive letter'
> app1
>
> Thanks
>
>
|