Sign in to follow this  
Followers 0
keilamym

script assistanc

8 posts in this topic

can anyone PLEASE tell me how to run a script with needed extra quotes

example

_RunDOS("psservice stop "windows firewall/internet connection sharing (ics)"")

or

Run ("psservice stop "windows firewall/internet connection sharing (ics)"")

The extra quotes the are required for the spaces in the service name is giving me an issue.

Thanks

Lavelle

Share this post


Link to post
Share on other sites



can you show a pic of the screen you want to see...

i think there is another way to do this

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites

can anyone PLEASE tell me how to run a script with needed extra quotes

example

_RunDOS("psservice stop "windows firewall/internet connection sharing (ics)"")

or

Run ("psservice stop "windows firewall/internet connection sharing (ics)"")

The extra quotes the are required for the spaces in the service name is giving me an issue.

Thanks

Lavelle

Try using single quotes for the spaces


Get Beta versions Here Get latest SciTE editor Here AutoIt 1-2-3 by Valuater - A great starting point.

Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

Share this post


Link to post
Share on other sites

can you show a pic of the screen you want to see...

i think there is another way to do this

8)

what i want to do is place a number of workstations into a text file, and run a script that reads the file and stops the Windows XP SP2 firewall on it. Since the name of the service has a space in it, i'd have to put quotes in the command line but it doesnt' work when its in an autoit script.

i wanted to get the command right, then i'd put the file read around it.

thanks

Share this post


Link to post
Share on other sites

i meant to look at this idea

Run(@ComSpec & " /C START " & "wscui.cpl", "", @SW_MINIMIZE)

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites

i tried single quotes and the comspec and couldn't get either to work.

Share this post


Link to post
Share on other sites

i meant to look at this idea

Run(@ComSpec & " /C START " & "wscui.cpl", "", @SW_MINIMIZE)

8)

this works.... I have checked it again on Win Xp... no need for beta either

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites

can anyone PLEASE tell me how to run a script with needed extra quotes

This should do it:

_RunDOS("psservice stop " & chr(34) & "windows firewall/internet connection sharing (ics)" & chr(34))

Regards

Uten

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