Jump to content

Syntax formatting help!


GoogleDude
 Share

Recommended Posts

I am trying to have the below line in my script but I am unable to figure out the correct formatting of the syntax.

FileWrite($file_var, ServerPath "$path") but the part that is confusing me is that the $path var needs to be wrapped by quates.

so when I look at the file that was written I need it to be like below.

ServerPath "C:\ Documents and Settings\All Users\ServerNode"

Make sense?

Hope so

Thanks

GoogleDude

Link to comment
Share on other sites

try doing

FileWrite($file_var, "ServerPath " & '"' & $path & '"')

at least if I'm understanding you correctly.

Edited by dbzfanatic
Link to comment
Share on other sites

Link to comment
Share on other sites

Thanks. I read in the help on StringReplace but I cant see where I specify the file in which I need certain strings replaced. The file in question has several lines in it that will have a \ in it, but I onlt need to replace some of them.

Thanks again for the feedback.

EDIT: I just came across _ReplaceStringInFile I think that is what I am looking for?

GoogleDude

Edited by GoogleDude
Link to comment
Share on other sites

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...