Sign in to follow this  
Followers 0
E1M1

Need cmd help

12 posts in this topic

It i start cmd manually from stat menu... I see.,.,.

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

C:\Documents and Settings\rain>

but if I use

run("cmd")
I see .,.,.

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

C:\>

How to make script that stats CMD so that it shows @scriptdir instead of C:\

thanks


edited

Share this post


Link to post
Share on other sites



Run(@ComSpec & ' "' & @ScriptDir & '"')

it still shows

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

C:\>

edited

Share this post


Link to post
Share on other sites

it does same as your 1-st code


edited

Share this post


Link to post
Share on other sites

#8 ·  Posted (edited)

What is the path of the testscript you use and how are you running it?

Oh you opened my eyes, thanks :) my script was in c:\ for some reason I am used to store my scripts in my documents , I really don't know why I did expection for this script :)

I am running it with f5.

But still what makes CMD start in script directory? how cmd know it?

for me it looks you just cant tell cmd it's dir that easy.

thanks.

Edited by E1M1

edited

Share this post


Link to post
Share on other sites

Oh you opened my eyes, thanks :) my script was in c:\ for some reason I am used to store my scripts in my documents , I really don't know why I did expection for this script :)

I am running it with f5.

But still what makes CMD start in script directory? how cmd know it?

thanks.

Did you try the first posted script again for another directory?

Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

Did you try the first posted script again for another directory?

yes it worked :)

edited

Share this post


Link to post
Share on other sites

yes it worked :)

Ok, so next time please think a little longer before posting because you are now around here long enough to show a little more effort first.

Jos


Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

your're right I just didn't think about it before posting - sorry.

if you wan to know I was thinking about 20 minutes and then I googled about cmd and I was was like crazy...


edited

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0