134 Topics

Member Avatar for
Member Avatar for sallecpt

Hey there I know one can use include [url]http://domain/page.php?var1=xxx&var2=xxx[/url] But I dont need an include This is what I need to do, and how on earth can I achieve this? I've burnt my brains already. Please help me. [CODE]$command = "/usr/bin/php5 -f /home/path/to/file/test.php?folder=777";[/CODE] then run the command. so, test.php needs …

Member Avatar for jnicholls92
0
112
Member Avatar for Billy D

I'm not sure if this is possible. Basically, I have a function that will detect the current active user. [CODE]string currentUser() { string user; ofstream outf("CurrentUser.dat", ios::trunc); system("whoami >> CurrentUser.dat"); outf.close(); ifstream inf("CurrentUser.dat"); inf >> user; return user; }[/CODE] I have another function which will create a directory in the …

Member Avatar for Billy D
0
357
Member Avatar for Thisisnotanid

Hi all, I was working on a MATLab program and I came to a point where I wanted to define a function such that one of the arguments would be used as a command. To clarify, the function being defined was an implementation of Simpson's rule that would integrate using …

Member Avatar for TrustyTony
0
244
Member Avatar for jon.kiparsky

I'm not very well up on ant, trying to learn a few things about it this afternoon. Is it possible to read in values from the command-line ant call? The scenario I have in mind is this: I want to make a generic build file that would have targets for …

Member Avatar for nezachem
0
169
Member Avatar for dem10

Hi all, I am trying to figure out the users logged in to our general server at work. Is there a command or string of commands that lists users (only once if logged in multiple times) in alphabetical order with no stats behind the username?

Member Avatar for alaa sam
0
81
Member Avatar for JPramod

Hi, I am running Ubuntu in my machine and I tried this code: [CODE] import java.io.InputStream; import java.io.IOException; import java.applet.Applet; import java.awt.*; public class execute extends Applet{ String output=""; public void init(){ try { // Execute command String command = "ls"; Process child = Runtime.getRuntime().exec(command); // Get the input stream …

Member Avatar for mKorbel
0
740
Member Avatar for jogieglenmait

hey. i had a question regarding activating and making command buttons control visible in a form by manipulating it from another form. ex. form 2 command button will be activated by manipulating it in form 1. i had this syntax for form 1 cmdActivate [CODE] form2.cmdAdd.Enabled=false [/CODE] will form 2's …

Member Avatar for jogieglenmait
0
100
Member Avatar for MasterMic

I'm attempting to recreate the Unix shell program "todo.txt" using C++ on Windows. An example use of my program in the Command Prompt would be: [CODE]>todo /A "I like cheese."[/CODE] which would append the item "I like cheese." to the file "todo.txt". In my program, there is a line which …

Member Avatar for MasterMic
0
233
Member Avatar for RenanLazarotto

I've found this a little hard to find, so I decided to share with you guys. This small code will allow your app to accept arguments. Just copy the whole code into the main sub (I didn't tested elsewhere) and edit the code inside the for to do what you …

Member Avatar for anoopkh
0
1K
Member Avatar for stelman

Hello there, I am trying to create an application which will open once the associated file type is clicked. I have associated my application with the extension .agl, via Visual Studio. When I publish the application and install it, the file is associated properly with my application and when I …

Member Avatar for stelman
0
235
Member Avatar for trpsjt2008
Member Avatar for Oxiegen
0
139
Member Avatar for ajijacobm

hi guys, Im doing a project that executes a java file through another java file.. I need to use Runtime.exec() funtion for the purpose. But, there is trouble in passing the input to the java file. Please help me solve the situation. my main funtion is shown below... [CODE] import …

Member Avatar for ~s.o.s~
0
164
Member Avatar for yellowkaiq

I can't get this to generate random shapes, etc. Basically what I need to do is randomly generate similar lists consisting of: combinations of 'square', 'triangle', 'circle' and 'left'. And random numbers from 1 to 10 for physical dimensions and 10 to 90 for angles Have the program use 'split' …

Member Avatar for woooee
0
2K
Member Avatar for skorm909

I have some code that i need a press any key to continue command but when i put it in there it doesn't work, here's what i have: [CODE]cout << "Press any key to continue." << endl; cin.get(); [/CODE] can anyone tell me what im doing wrong?

Member Avatar for skorm909
0
3K
Member Avatar for uzn

This is the error when i try to execute my code "Procedure or function 'Get Customer data' expects parameter '@Name', which was not supplied." [CODE]objCommand.CommandType = CommandType.StoredProcedure objCommand.CommandText = "GetCustomerData" Dim ObjParam1 As New SqlParameter("@Name", SqlDbType.VarChar, 2000) ObjParam1.Value = ID.ToString() Dim da As New SqlDataAdapter(objCommand) Dim dt As New DataTable …

Member Avatar for crapulency
0
164
Member Avatar for boos800

I'm beginning a program that needs to read a file given in the command line. My first question is, if my command line looks like: $java mysimulator 5 proc.txt And I want to use proc.txt, which args[i] is it? Right now I'm assuming that the class name is args[0] and …

Member Avatar for boos800
0
4K
Member Avatar for Usernamex235

Hi All, thanks in advance for any replies. Environment: PHP5, MySQL, Windows XP/Server 2000/Server 2003. Problem: Using shell_exec to run a small program connected to a database, waiting for it to finish and then outputting a file which was produced. All was fine until I got a new and larger …

0
154
Member Avatar for leverin4

Is it possible to check which version of Excel a user's computer will open while in a VB6 application? Some users will be using Excel 2003 and some will be using Excel 2007 and, in theory, a single command button will open one of two excel sheets based on which …

Member Avatar for AndreRet
0
507
Member Avatar for dsul

I'd like to have a windows forms application execute a command line instruction similar in structure to the following: ProcessText file1 file2 where ProcessText is a working console tool for automated text processing, file1 is the text I need processed, and file2 is the created text output. From the command …

Member Avatar for PsychoCoder
0
200
Member Avatar for ramukumar

Hi Friends I have two server 1. server 1 2. server 2 I want to execute a shell script in server 2 from server 1. shell script will returns few data i need to check in server 1 Please help me in this

Member Avatar for rch1231
0
160
Member Avatar for rahulkrishnanr

Hi Friends, How can I change the Command Text based on a Control event like clicking a button? I want to change the sql query on clicking a button. Any help is appreciated. Thanks in advance

Member Avatar for rahulkrishnanr
0
123
Member Avatar for curiousstudent

I need to run a batch file batch file which is stored in my C folder. When I run this file, I get the following on the cmd. 1 APs were seen MAC Address SSID RSSI 00:27:0d:b6:df:10 IBM -93 Press any key to continue . . . Now, I need …

0
105
Member Avatar for albgran

Hi Guys I need to compile and run a c++ program from java using Process a = Runtime.getRuntime().exec ("g++ -g function.cpp -o function"); Process b = Runtime.getRuntime().exec ("./function"); the problem is that the output I get from the c++ program is not correct but If I compile and run it …

Member Avatar for NormR1
0
104
Member Avatar for johndoe1985

Boas. Estou com uma dúvida para o qual preciso mesmo muito da vossa ajuda. Criei um report que inclui dados de 1 trabalhador (id, nome, residencia, bi, categoria profissional, etc...) e preciso de fazer o seguinte comando SQL: [B]SELECT * FROM Trabalhadores WHERE id_trabalhador = ' + valor + '[/B] …

0
84
Member Avatar for webs1987

Dear All, I'm developing a small Java application which will use Espeak to speak certain text. Now I pass the test as command line argument [I]$espeak -s 50 "a for apple"[/I] It works perfect on command line Now in my program, I've used [I]String cmd = "espeak -s 50 \"A …

Member Avatar for malek85
0
412
Member Avatar for gkaykck

Hi I am trying to make my homework about a command line calculator, and i am trying to divide the entered string into small parts and i am trying to use strtok for this. [CODE] #include <math.h> #include <stdio.h> #include <stdlib.h> #include <string.h> struct var { char name[10]; double value; …

Member Avatar for gkaykck
0
590
Member Avatar for xheavenlyx

Hello everyone, I have searched for this high and low but could not find a solution. To elaborate on the heading. I am trying to figure out a way to do this: 1. I have a text file with one line paths and file listing in it, for example: [CODE] …

Member Avatar for xheavenlyx
0
113
Member Avatar for danimal132

I uploaded a windows program (.exe) to my windows server. I now need to execute it and pass through a parameter using PHP.. how would i do this? On my computer i would just do this throught the command line, so i not sure how to go about this with …

Member Avatar for danimal132
0
212
Member Avatar for rtllz

I was wondering how to make a program to open a specified file just by entering its location. What command do would i use to open it instead of double clicking on the file. Thanks in advance.

Member Avatar for Ancient Dragon
0
1K
Member Avatar for Jaulm

I am attempting to execute a unix "df -k" command in java. I have the following example.. My question is how do I parse the results of the command in order to grab the available bytes versus just printing it out???? import java.io.*; public class unixcmd { public static void …

Member Avatar for Ezzaral
0
563

The End.