Hello ,

> print `cd`;
> 
> (those are back tics, not quotes) works.  "cd" by itself, in winx returns 
> the current dir.

Waw! it works! Thank you.

WDSPAW> If indeed the env. vrbl CD is set, try:
WDSPAW> print $ENV{CD}, "\n";
WDSPAW> It's not set on my XP Doze.

on my too :-(

----------------------------
sorry, I ran my code in DzSoft Perl Editor and %CD% was not set in
it. It works fine in cmd.exe.

open (FILE,"echo %CD% |") or die "$! - $^E\n";
print while (<FILE>);
close FILE;

>> How can I find out my current CWD without  Win32::GetCwd() ?
>> in dos window I run "echo %CD%" and got e.g. "e:\test"



WDSPAW>         Use the std module
WDSPAW>         use Cwd;
WDSPAW> To use:
WDSPAW> my $currpwd = cwd;

thanks, but I am looking for solution without any modules.


-- 
Best regards,
Pavel Prostine

_______________________________________________
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to