![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Problem with system() command Topic Summary: Not working as I'd expect Created On: 30-Jan-2009 16:12 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
I'm attempting to encrypt a file with DXL.
system("end_user_protdxl.exe \"" sourceFile "\" > \"" destinationFile "\""); This should work. I see a command line window flashing so I know its running the command. But the encrypted file isn't being created. Any have any ideas? ------------------------- David Pechacek AAI Services Textron dpechacek@sc-aaicorp.com David.Pechacek@gmail.com |
|
![]() |
|
![]() |
|
I know I am stating the obvious David, but does the source file start with the magic characters //<
------------------------- Tony Goodman Smart DXL limited www.smartdxl.com |
|
![]() |
|
![]() |
|
File also has to be in ansi format -- unfortunately dxl editor saves in UTF-8 format.
|
|
![]() |
|
![]() |
|
Tony. Yes it does. But from past experience, the encryption tool will still encrypt the file even without the //< in the beginning of the file. It just won't be readable by DXL when you try to run it.
And the file was not developed in the dxl editor. I am just writing a tool that will let me encrypt more than one file at a time so I don't have to type out tons of encrypt commands on the command line. Problem here is just the system command for some reason not executing the command as the command line does. I copy and paste the string the system command is executing into the command line and it works. ------------------------- David Pechacek AAI Services Textron dpechacek@sc-aaicorp.com David.Pechacek@gmail.com Edited: 30-Jan-2009 at 16:50 by David Pechacek |
|
![]() |
|
![]() |
|
Don't know which version of encrypt you are running but it may have to be launched from command window. (i.e., Most if not all dxl encrypters are not windows applications.)
Edited: 30-Jan-2009 at 16:52 by ron lewis |
|
![]() |
|
![]() |
|
Doesn't the system() command in DXL act the same as running something from the command line?
I have the encryption tool for DOORS 8.3. You can see the command I'm trying to run in my OP. ------------------------- David Pechacek AAI Services Textron dpechacek@sc-aaicorp.com David.Pechacek@gmail.com |
|
![]() |
|
![]() |
|
Your system command is trying to run the encryption tool as a window application which should fail if the encryption tool is a command line tool.
|
|
![]() |
|
![]() |
|
Me: 1 DXL: 0
system("c:\\windows\\system32\\cmd.exe /c end_user_protdxl.exe \"" sourceFile "\" > \"" destinationFile "\""); ------------------------- David Pechacek AAI Services Textron dpechacek@sc-aaicorp.com David.Pechacek@gmail.com |
|
![]() |
|
![]() |
|
strange...all I get is a blank output file
|
|
![]() |
|
![]() |
|
David, I never doubted that we would get you to the point the light bulb flashed. And I see that you gave yourself credit for winning the match. What I want to know is, how many rounds did the fight last?
Edited: 31-Jan-2009 at 10:48 by ron lewis |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
Problem with system() command
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.