China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

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!

中国DOS联盟论坛
The time now is 2026-08-03 02:14
中国DOS联盟论坛 » DOS学习入门 & 精彩文章 (教学室) » Enter the current directory under DOS from the right-click menu in WINDOWS View 1,887 Replies 9
Original Poster Posted 2006-04-21 12:01 ·  中国 广东 佛山 电信
初级用户
Credits 90
Posts 38
Joined 2006-01-06 18:41
20-year member
UID 48522
Status Offline
The "enter the current directory under DOS from the right-click menu" feature provided by Windows Optimization Master can also be done with a batch file:
----type "sendto" and press Enter, create a new text file in the sendto directory, name it dos.bat, and make its contents as follows:

@cmd /T:70 /k chdir /d %1

OK, now right-click any subdirectory in Explorer, find --, and you'll immediately arrive at the destination in a cmd window!

[ Last edited by arding on 2006-5-11 at 16:06 ]
Floor 2 Posted 2006-04-21 12:47 ·  中国 安徽 铜陵 移动
中级用户
★★
Credits 230
Posts 104
Joined 2006-04-21 12:22
20-year member
UID 54192
Gender Male
Status Offline
Nice
Floor 3 Posted 2006-04-22 22:49 ·  中国 江西 南昌 电信
禁止访问
Credits 97
Posts 41
Joined 2005-10-06 09:15
20-year member
UID 43156
Status Offline
Create a new text file, change the extension to .REG, enter the following content and save it.
REGEDIT4


@="Open with &Dos window"


@="cmd.exe /k cd \"%1\""


[ Last edited by 272922032 on 2006-4-22 at 22:51 ]
Floor 4 Posted 2006-04-30 23:49 ·  中国 广东 广州 电信
金牌会员
★★★★
D◎$ Fαп
Credits 4,562
Posts 1,883
Joined 2004-01-19 00:00
22-year member
UID 15812
Gender Male
From 广东广州
Status Offline
The method in post #3 is best. Under Win9x, if you just change cmd.exe to command.com, it can achieve the same effect by a different route.
----====≡≡≡≡ 我的至爱,永远是MSDOS!≡≡≡≡====----
Floor 5 Posted 2006-05-01 12:35 ·  中国 四川 绵阳 电信
高级用户
★★
Credits 587
Posts 282
Joined 2006-04-10 03:40
20-year member
UID 53599
Gender Male
Status Offline
The one in post #3 is the complete right-click mouse menu. Of course using CMD also works, it's just written differently.
Floor 6 Posted 2006-05-11 16:14 ·  中国 甘肃 兰州 中移铁通
初级用户
Credits 90
Posts 38
Joined 2006-01-06 18:41
20-year member
UID 48522
Status Offline
After all, this forum is a DOS forum, and I also admit that the method in post #3 is a bit more practical, but I want to argue the point: can you use reg to do file comparison?
Binary comparison:

@fc /b %1 %2
@pause

Text comparison:

@fc %1 %2
@pause

Usage: under Windows, select the two files to compare, then send them to the batch file.
Floor 7 Posted 2006-05-11 23:04 ·  中国 四川 成都 联通
铂金会员
★★★★
Credits 7,493
Posts 2,672
Joined 2005-09-02 00:00
20-year member
UID 42173
Gender Male
Status Offline
It should use cd /d %1
Floor 8 Posted 2006-05-12 09:10 ·  中国 甘肃 兰州 中移铁通
初级用户
Credits 90
Posts 38
Joined 2006-01-06 18:41
20-year member
UID 48522
Status Offline
Originally posted by electronixtar at 2006-5-11 23:04:
因该用cd /d %1

Please look at the first post, I already quietly changed it, hehe. This DOS forum has taught me quite a few new things! Thanks!
Floor 9 Posted 2006-05-12 17:36 ·  中国 广东 东莞 电信
新手上路
Credits 12
Posts 4
Joined 2006-05-12 17:09
20-year member
UID 55399
Gender Male
Status Offline
I ran into a problem when I tried it. I tested it at an internet cafe, maybe it was because of restrictions from the internet cafe's management software.
I couldn't find the sendto directory. Which system directory is it under? Is it under windows?
Floor 10 Posted 2006-05-12 18:21 ·  中国 四川 成都 联通
铂金会员
★★★★
Credits 7,493
Posts 2,672
Joined 2005-09-02 00:00
20-year member
UID 42173
Gender Male
Status Offline
Start——>Run——>sendto——>Enter
Forum Jump: