Old subject - using backslash

Nancy Palmquist nlp at vss3.com
Thu Feb 4 08:02:11 PST 2010


On 2/4/2010 10:12 AM, Richard Hane wrote:
>
>
> ------------------------------------------------------------------------
> *From:* Mike Schwartz <mschw at athenet.net>
> *To:* filepro-list at lists.celestial.com
> *Sent:* Thu, February 4, 2010 7:40:12 AM
> *Subject:* RE: Old subject - using backslash
>
> Simple problem... I have a process that copies a file to another folder
> based on the answers to a couple of input statements using the stsrem
> command. When I set a variable bs="\" I get a syntax error. If I use
> bs="/" it passes syntax but the command will not work.
>
> I believe I could set the variable bs to the chr string for the / but
> can't remember what it is.
>
> Thank you in advance,
>
> Rick Hane
>
> Deluxe Stitcher Comapny Inc
>
> www.deluxestitcher.com <http://www.deluxestitcher.com/>
>
> ----- ----- -----
>
> chr(“92”)
>
> Mike Schwartz
>
> Mike,
>
> Thanks, that did the trick.
>
> Rick
>
>
>
> _______________________________________________
> Filepro-list mailing list
> Filepro-list at lists.celestial.com
> http://mailman.celestial.com/mailman/listinfo/filepro-list
Rick,

This is easy.

qq(1)=chr("92")  is a backslash


I like to use a "/"  in the string - for example-

aa="c:/folder/filename.exe"

Then I do this:

aa=xlate(aa,"/",chr("92"))

That way, I can display the aa value on the screen without any crazy 
stuff and then flip the slashes to send it to the system command.

Nancy

-- 
Nancy Palmquist         MOS & filePro Training Available
Virtual Software Systems    Web Based Training and Consulting
PHONE: (412) 835-9417           Web site:  http://www.vss3.com


More information about the Filepro-list mailing list