command line in dev env?

How do you pass a command line to your application when you run it out
of the development environment?

0
Chris
8/4/2000 3:46:05 PM
sybase.powerbuilder.general 62418 articles. 19 followers. Follow

1 Replies
657 Views

Similar Articles

[PageSpeed] 52
Get it on Google Play
Get it on Apple App Store

Chris,
We use the KISS method (keep it simple ...)

in the application open event:
string  sCmdParm
If this.Handle() > 0   then  // it's the EXE
   sCmdParm  = CommandParm()
else
   sCmdParm  = RegistryGet( ' a custom registry location for our app
containing the commandline ')
end if

We have a .reg file that contains the location and commandline we want to
set, and one that also blanks it out, and we just set/unset these during
testing.  We wrote this in PB5, and I'm sure there's probably a native
method in PB7...

Paul Horan [TeamSybase]
Buffalo, NY

"Chris Victor" <victorc@oaktreesw.com> wrote in message
news:398AE53D.58398B43@oaktreesw.com...
> How do you pass a command line to your application when you run it out
> of the development environment?
>


0
Paul
8/4/2000 4:08:39 PM
Reply:

Similar Artilces:

Command line commands
Within a PowerBuilder application, how do I create an association so that all files with no extension are opened with notepad? I am using InsertFile command. I know we can use the command line 'assoc' command but I don't know how to include it in PowerBuilder code. I am using PowerBuilder 6.5 Thanks Mangala You could probably do that with the run function. However, you should be careful because most directories don't have extensions. I don't know what kind of behavior that will cause. Mike ...

Command Line commands
Is there a list of commands that can be used at the NetWare server and at the Windows workstation command line for ZFD 4.? I can't find them in the documentation or on the knowledgebase apart from ZENVER. Thanks in advance for any replies. Spamaddress@spam.com, > Is there a list of commands that can be used at the NetWare server and at > the Windows workstation command line for ZFD 4.? > To control what? NAL? - Anders Gustafsson, Engineer, CNE6, ASE NSC Volunteer Sysop Pedago, The Aaland Islands (N60 E20) Novell does not monitor these forums officiall...

PowerBuilder command line options
I'm trying to find out information about what options are available from the command line in PowerBuilder. I haven't been able to find it in the documentation. I know you can do "C:\PWRS\PB5I32\PB050.EXE /p library" to have it open the library painter but are there more options available? Specifically I'd like to go into the library painter, import a project, open the project and do a Design Restore Libraries from the menu, then exit. The goal here is to automate the extract and build process. PowerGen has a nice command line interface for building the exe, but...

How to pass command line arguments to an extension using a command line on MacOS?
I am developing an extension that processes some command line options. I want to invoke the Firefox from a command line like this: > ...../firefox -myarg1 -myarg2 I am running into a problem on Mac OS. When I run such command when there is no FireFox running it works fine. However if I run the command again I get an error saying that there is already an instance of Firefox running and only one instance can run at a time (paraphrasing here). I have tried to use the -remote option but no luck. Does anyone know how to solve this problem? Does anyone know if invoking of chatzill...

How to pass command line arguments to an extension using a command line on MacOS
I am developing an extension that processes some command line options. I want to invoke the Firefox from a command line like this: > ...../firefox -myarg1 -myarg2 I am running into a problem on Mac OS. When I run such command when there is no FireFox running it works fine. However if I run the command again I get an error saying that there is already an instance of Firefox running and only one instance can run at a time (paraphrasing here). I have tried to use the -remote option but no luck. Does anyone know how to solve this problem? Does anyone know if invoking of chatzill...

PowerBuilder Command Line Return Code?
Hello, How do I know whether a PowerBuilder application has been built/deployed successfully when using the command line? I have noticed that PB always returns 0 as the %errorlevel% even when the build is unsuccessful. I am automating the build/deployment/packaging tasks of my company's applications and one of the steps in this process is building a PowerBuilder Target. Here is the command line: pb100 /workspace %PBSourcePath%\%PBWorkspaceName% /d /out %origdir%\Deploy.out The process should only continue if the application has been successfully compiled. Any ide...

Command line Build/Deploy in Powerbuilder 8
Can you build/deploy a runtime library using the command prompt? I have only found the commands for workspace and target in the documentation. Thanks! Can't be done with PB. You need to go with something like PowerGen (http://www.ecrane.com) for something like this. Definitely has a lot more value than just this. A tool worth having. Good luck, Terry [TeamSybase] and Sequel the techno-kitten On Wed, 23 Oct 2002 13:43:17 -0400, CAB wrote: >Can you build/deploy a runtime library using the command prompt? >I have only found the commands for workspace and target in...

superreview granted: [Bug 242959] Thunderbird should open .eml files from command line : [Attachment 184014] this implements opening .eml files from the command line
Scott MacGregor <mscott@mozilla.org> has granted David Bienvenu <bienvenu@nventure.com>'s request for superreview: Bug 242959: Thunderbird should open .eml files from command line https://bugzilla.mozilla.org/show_bug.cgi?id=242959 Attachment 184014: this implements opening .eml files from the command line https://bugzilla.mozilla.org/attachment.cgi?id=184014&action=edit ------- Additional Comments from Scott MacGregor <mscott@mozilla.org> 1) You might be able to move your file includes into the MOZ_XUL_APP ifdef right below them since the new command line...

superreview requested: [Bug 242959] Thunderbird should open .eml files from command line : [Attachment 184014] this implements opening .eml files from the command line
David Bienvenu <bienvenu@nventure.com> has asked Scott MacGregor <mscott@mozilla.org> for superreview: Bug 242959: Thunderbird should open .eml files from command line https://bugzilla.mozilla.org/show_bug.cgi?id=242959 Attachment 184014: this implements opening .eml files from the command line https://bugzilla.mozilla.org/attachment.cgi?id=184014&action=edit ------- Additional Comments from David Bienvenu <bienvenu@nventure.com> this patch requires the fix for bug 241212 to work correctly. Scott, what do you think of this approach? ...

TFS Command Line Get Command
Hi Can you pls help me how to pull the latest version or label from the TFS through Command Line. I went through the msdn documentation. I am not able to get a clear picture. I am expecting some command with example where I can pass the server name, Credentials and sourcepath and Destination path. Basically I want to pull the get latest to a local path which  will be specified in the command line utility. Hope so I am clear.  Pls help me.RegardsFinny  You can use tf command line utilityThis utility can be found in C:/ProgramFiles/Microsoft Visual Studio (9 or 8...

Cool command line prompt command
Last night I rebooted a web server, and after doing so, I couldn't RDP into it. So, in the meanwhile, while I awaited a response from those in power who could go to the data center and physically restart the server, I thought there must be a command line prompt command that I can run from one of the other servers to reboot it. I found a command called shutdown. I ran shutdown /r /f ComputerName and it rebooted the server and then I was able to access it via RDP. shutdown /r /f ComputerName /r - Restart/f - Forced restartRyan OlshanASPInsider | Microsoft MVP, ASP.NEThttp://ryanolshan.c...

KDE4 icons and command line commands
I'm running Suse 11.3 with KDE4. I have an icon in my Kickoff Application Launcher for xterm. When I click on the icon, it apparently executes the command /usr/bin/xterm which generates a large window with a large font. I would like to get a smaller window with a smaller font. I know how to do that on a command line but to execute the command I need to _already_ have a window open so I can run the command. So how do I (a) add a new icon to the KDE launcher which generates the command I want or (b) change the existing icon so that it executes MY command and not the basic...

What are command line commands to detach and attach a db
What are the command line commands to detach and attach a database? My copy of Microsoft SQL Server Management Studio Express has stopped working. So I need to detach the database using the commands.Thank youJackxxx Is this what you are looking for: http://support.microsoft.com/kb/224071Thanks,MaxLet Me Google That For You! sp_attach_db sp_detach_dbBeware of bugs in the above code; I have only proved it correct, not tried it. (Donald Knuth)...

command-line commands within a Perl script
Hi, I have a directory with several subdirectories, each full of several dozen Word files. For each subdirectory, I need to run the checksum app against all of that directory's files and output a file into that directory with the checksum results. How can I do this? I'm very unfamilar with running command-line commands from within an Perl script. I know to change directories, you can do something like this: $changeDir = "cd ".$startingDir; system($changeDir); but what about retrieving the list of subdirectories from the starting directory? How can I do this? ...

Web resources about - command line in dev env? - sybase.powerbuilder.general

Command - Wikipedia, the free encyclopedia
Text is available under the Creative Commons Attribution-ShareAlike License ;additional terms may apply. By using this site, you agree to the ...

Adele eclipses Taylor Swift to take command of the pop world
Adele Adkins is the first person to top the ARIA singles and albums charts in the same week since Swift exactly one year ago.

Command your club to victory in Sega’s Football Manager Mobile 2016
... How long can you survive on the Last Horizon? , and Dig, explore and collect stars in Starlit Adventures . Football Manager Mobile 2016 Command ...

Mercedes S-Cabrio commands 11 percent premium over coupe
Filed under: Mercedes-Benz , Car Buying , Convertible , Luxury Mercedes released pricing for the new S-Class Cabriolet in Europe, which tells ...

North American Aerospace Defense Command Tracks Santa’s Flight « CBS New York
The North American Aerospace Defense Command is continuing its tradition of telling youngsters the location of Santa Claus on his annual storybook ...

Germany’s Second In Command Denounces Saudi Funding Of Radical Islam Abroad
Germany’s Second In Command Denounces Saudi Funding Of Radical Islam Abroad

Officer who shot 12-year-old Tamir Rice claims he aimed for toy gun, gave verbal commands
... I was focused on the suspect," Loehmann wrote. "Even when he was reaching into his waistband, I didn't fire. I still was yelling the command ...

Bethesda: Fallout 4 console commands 'not supported or recommended' on PC
In a very Bethesda-like fashion, messing around with console commands on the PC version of Fallout 4 might completely bug out your game more ...

Amazon Echo owners can create custom voice commands with IFTT
... item to your shopping list is pretty cool, but there comes a point where you start to feel the limits of the Echo's pre-programmed voice commands. ...

Chinese Hacker Group Uses Dropbox for Malware Command and Control
NEWS ANALYSIS: The current malware threat isn't targeting U.S. interests now, but the hacker group could easily turn its attention in that direction ...

Resources last updated: 12/25/2015 2:52:08 AM