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 2,098 Posts 566 Joined 2007-09-11 07:27 18-year member UID 97070 Gender Male
Status Offline
```
::It seems we can only use SendKeys. Assume there is a C:\con folder
@echo off
explorer c:\
>t.vbs echo createobject("wscript.shell").sendkeys("{f6}c:\con~")
cscript //nologo t.vbs
del t.vbs
```
Credits 2,098 Posts 566 Joined 2007-09-11 07:27 18-year member UID 97070 Gender Male
Status Offline
Originally posted by s11ss at 2008-8-29 11:47 PM:
::It seems that only SendKeys can be used. Suppose there is a C:\con folder
@echo off
explorer c:\
>t.vbs echo createobject("wscript.shell").sendkeys("{f6}c:\con~")
cscript //nolo ...
It turns out that SendKeys is not necessary!
Directly use start. If there is a C:\con folder, use this command to open:
start c:\con\
That is to say: 1. The complete absolute path must be written;
2. This complete absolute path must end with a "\".
If there are spaces in the path, use the following form:
start "new" "c:\test dir\con\"
[ Last edited by s11ss on 2008-8-30 at 12:26 AM ]
Recent Ratings for This Post
( 4 in total)Click for details
Credits 2,098 Posts 566 Joined 2007-09-11 07:27 18-year member UID 97070 Gender Male
Status Offline
Originally posted by moniuming at 2008-8-30 12:37 AM:
It really can. To create such a folder, you must follow the method in post 18, enter the absolute path and add \ at the end
Creating such a folder doesn't necessarily require entering an absolute path, but you must add \ at the end