Jump to content

Recommended Posts

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

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


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

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

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

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
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...