Is it that you want the center portion of the string by chopping off the first and last characters, or are you looking to replace the quotes?
To trim first and last do: theString = Mid(theString, 2, len(theString) - 2) To get rid of quotes, do theString = Replace(theString, """", "") Ray at work > -----Original Message----- > From: Abbiss, Mark [mailto:[EMAIL PROTECTED] > > > URGENT: Please can someone help > > I am trying to sort out a vbs script we use when logging on > to our AD domain (tenuous connection I know !) > > I have to take a string and trim the beginning and end > > eg. "C:\Temp\file.bat /DUMP" has to be trimmed to Temp\File.bat /DUMP > > Can anyone give me a quick and dirty solution... ********************************************************************************************************** The information contained in this e-mail message is intended only for the personal and confidential use of the recipient(s) named above. Distribution, publication, or retransmission of this message is strictly prohibited. This message may be a bank to client communication and as such is priviliged and confidential. If the reader of this message is not the intended recipient or an agent responsible for delivering it to the intended recipient, you are hereby notified that you have received this document in error and that any review, dissemination, distribution, or copying of this message is strictly prohibited. If you have received this communication in error, please notify us immediately by e-mail, and delete the original message. The sender of this e-mail specifically "opts-out" of the Electronic Signatures and Global and National Commerce Act (E-Sign) and any and all similar state and federal acts. Accordingly, but without limitation, any and all documents, contracts, and ageements must contain a handwritten signature of the sender to be legal, valid, and enforceable. ********************************************************************************************************** List info : http://www.activedir.org/mail_list.htm List FAQ : http://www.activedir.org/list_faq.htm List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/
