Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!
Credits 5,226 Posts 1,737 Joined 2006-03-10 00:38 20-year member UID 51697 From 成都
Status Offline
I searched online and found that pwd is the command to print the current directory in the Linux system. Shouldn't all those who use this command be using non-Windows operating systems? Why is it related to batch processing under Windows?
I haven't used the Linux system and don't quite understand if bat batch processing can be used under Linux. Can someone explain it?
Credits 653 Posts 252 Joined 2006-04-16 19:48 20-year member UID 53939
Status Offline
Originally posted by namejm at 2006-8-3 12:56:
After searching online, I found that pwd is the command to print the current directory in the Linux system. Shouldn't all those who use this command be using non-Windows operating systems? How does it get related to batch processing under Windows...
Hehe, buddy, just type pwd in your own Win32 command line and you'll understand, no need for google? :P The method of the upstairs buddy seems不错, thanks for the tip!
Credits 5,226 Posts 1,737 Joined 2006-03-10 00:38 20-year member UID 51697 From 成都
Status Offline
May I would like to ask about the system version?
Mine is WinXP + SP2. After entering the pwd command, it prompts that it is neither an internal or external command, nor an executable program or batch file.
Credits 653 Posts 252 Joined 2006-04-16 19:48 20-year member UID 53939
Status Offline
Originally posted by namejm at 2006-8-18 07:37:
What is the version of your system?
Mine is WinXP + SP2. After entering the pwd command, it prompts that it is neither an internal or external command, nor an executable program or batch file.
Apologize to Brother namejm, I made a mistake. I installed the posix shell environment on my Win32, so I often unconsciously use unix commands and thought Win32 also came with it, heh heh.
But the original intention of my first floor is to say that assign the standard output of any command to an environment variable. pwd is just an example here . If you just want to complete the effect of pwd to the variable, for %%I in (.) do set PWD=%%~fnI is enough.