| View previous topic :: View next topic |
| Author |
Message |
bbelcher Contributor

Joined: 30 Jul 2002 Posts: 172
|
Posted: Fri Feb 13, 2004 10:25 pm Post subject: String to long? |
|
|
Hello,
I have a little problem.
I have a long string. Its not excessive in any sence but when I try to pass it to a dos program I only recive part of it.
Example of a INFO return or a SAVEFILE command.
[first line]
WiPeq5Zqj1FqA9Bvkvc7l/T0RfgQ2KLYlTJoxC1+R29DsJOX+KmuJvS6Jb1hO3v0mm20lBKAOpMN
[second line]
X41Zk75l85ruy4IQdWWToIC3rHULCjVRBxH3qQPHKw==
[it should look like]
WiPeq5Zqj1FqA9Bvkvc7l/T0RfgQ2KLYlTJoxC1+R29DsJOX+KmuJvS6Jb1hO3v0mm20lBKAOpMNX41Zk75l85ruy4IQdWWToIC3rHULCjVRBxH3qQPHKw==
when I try to pass this to a dos program I only get the frist line.
I was hoping for a simple I forget to set somthing fix.
Thanks..
[/img] |
|
| Back to top |
|
 |
Mac Professional Member

Joined: 08 Jul 2000 Posts: 1585 Location: Oklahoma USA
|
Posted: Fri Feb 13, 2004 10:30 pm Post subject: |
|
|
You have verical bars ( "|" ) in the string which is a DOS
"pipe" command. Try enclosing the whole string in quotes,
or @chr(34)s if sending it from VDS.
Cheers, Mac  _________________ VDSug.dll does file IO, check/disable menu items,
non-VDS dlls, draw functions and more...
Free download (30k dll size) at:
http://www.vdsworld.com/download.php?id=361
 |
|
| Back to top |
|
 |
bbelcher Contributor

Joined: 30 Jul 2002 Posts: 172
|
Posted: Fri Feb 13, 2004 11:52 pm Post subject: |
|
|
| I've tried that and no luck. It seams to parse it after 76 characters. |
|
| Back to top |
|
 |
Mac Professional Member

Joined: 08 Jul 2000 Posts: 1585 Location: Oklahoma USA
|
Posted: Sat Feb 14, 2004 12:28 am Post subject: |
|
|
Ah - ok, there is a command line limit of 80 chars in
DOS if I remember correctly... Sorry, don't spend much
time there anymore.
Cheers, Mac  _________________ VDSug.dll does file IO, check/disable menu items,
non-VDS dlls, draw functions and more...
Free download (30k dll size) at:
http://www.vdsworld.com/download.php?id=361
 |
|
| Back to top |
|
 |
vtol Valued Contributor


Joined: 05 Feb 2004 Posts: 656 Location: Eastern Indiana
|
Posted: Sat Feb 14, 2004 12:37 am Post subject: |
|
|
You'll probably have to convert it somehow for DOS, it does have line limitations.
Maybe the below will give you clues on a get around, not sure.
@SHORTNAME(<file description>)
Description:
This function returns a DOS-compatible short filename version of the file path <file description> if it exists.
GL |
|
| Back to top |
|
 |
bbelcher Contributor

Joined: 30 Jul 2002 Posts: 172
|
Posted: Sat Feb 14, 2004 12:40 am Post subject: |
|
|
I'm stillbaffled becouse what you save the string minus any dos interaction. hears a bit of code.
| Code: |
%%key = test
%%str = this is a test bla bla bla etc.
%%en = @BLOWFISH(CRYPTSTR,%%key,%%str)
LIST ADD,1,%%en
%%tt = @item(1,0)
info %%tt
LIST SAVEFILE,1,c:\test2.txt
|
still returns the same thing. |
|
| Back to top |
|
 |
Mac Professional Member

Joined: 08 Jul 2000 Posts: 1585 Location: Oklahoma USA
|
Posted: Sat Feb 14, 2004 1:05 am Post subject: |
|
|
Is it possible that some of the chars (once encrypted)
aren't VDS compatible?
Also, have ya tried saving it to a file first, then encrypting
it as a file?
Starting to run out of ideas here...
Cheers, Mac  _________________ VDSug.dll does file IO, check/disable menu items,
non-VDS dlls, draw functions and more...
Free download (30k dll size) at:
http://www.vdsworld.com/download.php?id=361
 |
|
| Back to top |
|
 |
vtol Valued Contributor


Joined: 05 Feb 2004 Posts: 656 Location: Eastern Indiana
|
Posted: Sat Feb 14, 2004 1:15 am Post subject: |
|
|
Yeah it looks as though your trying to backup the same thing you encrypted, at the same time, is this what your trying to do?
I'm not sure what your trying to do I guess.
I gotta go, maybe tomorrow I can help.
cya |
|
| Back to top |
|
 |
bbelcher Contributor

Joined: 30 Jul 2002 Posts: 172
|
Posted: Sat Feb 14, 2004 1:21 am Post subject: |
|
|
| First I want to type a string of text, then encrypt it then send it to a different computer. But when I encrypt the string if it's a semi long string it parses it or "word wraps it" at 76 characters. I was hopeing to have one long string not 2,3,or 4 strings at 76 characters. |
|
| Back to top |
|
 |
Mac Professional Member

Joined: 08 Jul 2000 Posts: 1585 Location: Oklahoma USA
|
Posted: Sat Feb 14, 2004 1:40 am Post subject: |
|
|
My point was that possibly the "encrypted" char at that
point is a new line char, a null, (or something else that
VDS chokes on), but I don't know. I'm not familiar with
the DLL you're using - does it mention a string length limit?
If you can encrypt a file with it, you might save the string
as plain text, then encrypt the file. Then either reload the
file and put it in a string (which still won't work if VDS can't
handle the char), or just send the file.
Just a thought.
Cheers, Mac  _________________ VDSug.dll does file IO, check/disable menu items,
non-VDS dlls, draw functions and more...
Free download (30k dll size) at:
http://www.vdsworld.com/download.php?id=361
 |
|
| Back to top |
|
 |
bbelcher Contributor

Joined: 30 Jul 2002 Posts: 172
|
Posted: Sat Feb 14, 2004 1:48 am Post subject: |
|
|
no menshion of a limit.
Thanks for you input.
I appreciate it. |
|
| Back to top |
|
 |
vtol Valued Contributor


Joined: 05 Feb 2004 Posts: 656 Location: Eastern Indiana
|
Posted: Sat Feb 14, 2004 1:54 am Post subject: |
|
|
Why not just trick it some how.
I had time for another comment, hehe
| Code: |
%%first_string = WiPeq5Zqj1FqA9Bvkvc7l/T0RfgQ2KLYlTJoxC1+R29DsJOX+KmuJvS6Jb1hO3v0mm20lBKAOpMN
%%second_string = X41Zk75l85ruy4IQdWWToIC3rHULCjVRBxH3qQPHKw==
%%final_string = %%first_string""%%second_string
|
Maybe use with Input perhaps.
But I think the DOS program your using is limited to single CR lines, not 80 CR dual lines for input. |
|
| Back to top |
|
 |
bbelcher Contributor

Joined: 30 Jul 2002 Posts: 172
|
Posted: Sat Feb 14, 2004 2:02 am Post subject: |
|
|
Thats the kind of the direction I'm going.
Thanks.. |
|
| Back to top |
|
 |
Mac Professional Member

Joined: 08 Jul 2000 Posts: 1585 Location: Oklahoma USA
|
Posted: Sat Feb 14, 2004 2:15 am Post subject: |
|
|
Don't suppose this IDE prob could be involved....
http://forum.vdsworld.com/viewtopic.php?p=16415&highlight=word+wrap+serge#16415
| Serge wrote: | i have never been able to use the word wrap/line wrap as i too have code longer than the screen...i usually get an error with vds saying that the wrapped line contains an error ie. it treats the wrapped line as a fresh line of code !??!
serge |
Still thinkin...  _________________ VDSug.dll does file IO, check/disable menu items,
non-VDS dlls, draw functions and more...
Free download (30k dll size) at:
http://www.vdsworld.com/download.php?id=361
 |
|
| Back to top |
|
 |
vtol Valued Contributor


Joined: 05 Feb 2004 Posts: 656 Location: Eastern Indiana
|
Posted: Sat Feb 14, 2004 2:18 am Post subject: |
|
|
Try throwing the below in the fire:
| Code: |
%%final_final_string = @ASC(%%final_string)
|
Maybe DOS can Read it better... |
|
| Back to top |
|
 |
|