how to open a folder

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
dsdsds

how to open a folder

Post by dsdsds » Sat Sep 18, 2004 6:16 pm

What's the best way to open a folder (the equivalent of "Start - Run - c:\foobar")?

User avatar
Bob Hansen
Automation Wizard
Posts: 2475
Joined: Tue Sep 24, 2002 3:47 am
Location: Salem, New Hampshire, US
Contact:

Post by Bob Hansen » Sat Sep 18, 2004 7:13 pm

We can debate about "best way" but this way works:
Run Program>command.com /c start c:\foobar
Note: Use "command.com" for Win9X systems, "cmd" for NT/XP/2K systems.
Last edited by Bob Hansen on Sat Sep 18, 2004 9:16 pm, edited 1 time in total.
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!

dsdsds

Post by dsdsds » Sat Sep 18, 2004 7:58 pm

Bob Hansen wrote:We can debate about "best way" but this way works:
Run Program>command.com /c start c:\foobar
Note: Use "command.com" for Win9X systems, "com" for NT/XP/2K systems.
Interesting command... but can you tell me where am I wrong?

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\diego>command /c c:\temp
Bad command or file name

C:\DOCUME~1\diego>command /c start c:\temp
Bad command or file name

C:\DOCUME~1\diego>command.com /C start c:\temp
Bad command or file name

C:\DOCUME~1\diego>command.exe /C start c:\temp
'command.exe' is not recognized as an internal or external command,
operable program or batch file.

C:\DOCUME~1\diego>command.com /C start c:\
Bad command or file name

C:\DOCUME~1\diego>

Lumumba

Post by Lumumba » Sat Sep 18, 2004 8:40 pm

Take this (Bob's advise)
Use "command.com" for Win9X systems, "com" for NT/XP/2K systems
and compare it with your command line setting
Microsoft Windows XP [Version 5.1.2600]
... diego>command...
Have a try with this
Run Program>cmd /c start c:\temp
or that
Run Program>explorer c:\temp
8)

dsdsds

Post by dsdsds » Sat Sep 18, 2004 9:06 pm

Have a try with this
Run Program>cmd /c start c:\temp
or that
Run Program>explorer c:\temp
8)[/quote]

Fantastic! Thanks!!! :D

User avatar
Bob Hansen
Automation Wizard
Posts: 2475
Joined: Tue Sep 24, 2002 3:47 am
Location: Salem, New Hampshire, US
Contact:

Post by Bob Hansen » Sat Sep 18, 2004 9:19 pm

Sorry, error in my instructions. I have corrected it.

I should have said use "cmd" with XP, not "com"

Sorry for the confusion. Thanks again Lumumba for making that correction. Maybe you can correct your quote of my corrected line?...
Hmm, do I recall that you cannot edit? Ever get that fixed?

(Actually "com" was not tried by dsdsds anyway, only "command" variations).
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!

dsdsds

Post by dsdsds » Sat Sep 18, 2004 9:36 pm

Bob Hansen wrote: (Actually "com" was not tried by dsdsds anyway, only "command" variations).
I just thought you were invert "com" with "exe" so I tried command.com and command.exe :)

Thanks anyway to all of you!
(sorry for my bad english)

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts