Hi I have a php script which creates an xml file //Select the Database mysql_select_db("personeelsbestand",$db); $result = mysql_query("select * from XMLAfdeling", $db); //Create SimpleXMLElement object $xml = new SimpleXMLElement('<xml/>'); //Add each column value a node of the XML object while($row = mysql_fetch_assoc($result)) { echo $row['Afdelingnaam']."\n"; $mydata = $xml->addChild('mydata'); $mydata->addChild('AfdelingID',$row['AfdelingID']); $mydata->addChild('Afdelingnaam',$row['Afdelingnaam']); $mydata->addChild('VestigingID',$row['CampusID']); $mydata->addChild('Vestiging',$row['Campus']); $mydata->addChild('DepartementsID',$row['DepartemenstID']); $mydata->addChild('Departement',$row['departement']); } mysql_close($db); //Create the XML file $fp = fopen("UltimoAfdeling.xml","wb"); //Write the XML nodes var_dump(fwrite($fp,$xml->asXML())); //Close the database connection fclose($fp); when I run the code in my browser on my localhost it works perfectly but when I try to run it in the windows command prompt as …

Member Avatar
Member Avatar
+0 forum 1

Hey, I recently found out how to shutdown another's computer using yours at school with command prompt and when I tried it, it didn't work. Here's the code: shutdown -i and when I click on browse, it says that the server is unavailable. And here at my school, we login to the network using an assigned 5 digit lunch number and a random password. We technically don't have an actual username to login with. I also learned how to send messages to another computer using command prompt and that doesn't work either: msg [/ persons lunch number] [/message time] [/message] …

Member Avatar
Member Avatar
+0 forum 13

Hello All. I have a program that automatically restarts itself atfer a certain amount of time. I am doing this to test some things out. The program is wrapped in a jar. I run the jar from terminal with java -jar ProgramName.jar It will run and will output all the "System.out.println" outputs in terminal When the program restarts itself, It stops outputing on terminal. It runs fine and everything, I just want to see the output. How would I accomplish this. this is my restarting code. public void Restart() throws IOException { try { final String javaBin = System.getProperty("java.home") + …

Member Avatar
Member Avatar
+0 forum 2

I want to build an own interpreter using c programming and I want to call it in command prompt. How would i do this? I just want to start a command "display" which can display the contents of a file like type in cmd.

Member Avatar
Member Avatar
+0 forum 10

one of my goals for this year is to learn java, and I found an excuse to get started lately. So over hte last couple of hours I have been reading tutorials and the likes, and started following the advice from this post http://www.daniweb.com/software-development/java/threads/99132/starting-java-java-tutorials-resources-faq As such I am up to this point http://docs.oracle.com/javase/tutorial/java/concepts/QandE/questions.html it suggested I lookeda around and made note of the state/ behaviours of objects surrounding me. As such I noted the only things that jumped out at me , my books and hte tv, which seemed sufficient for the exercise. However, for the tv I am trying …

Member Avatar
Member Avatar
+0 forum 4

Hello I am looking for a way to open command prompt of my remote windows machine with python code. could somebody help me with that ? Thank you.

Member Avatar
Member Avatar
+0 forum 3

ok so i have set commands which i normally use with cmd.exe but i need to create gui so its easier based off clicking a button and it would process the entire command for me but still have selection with VB if anyone could show me the the conversion of the current bat file as i have many to port i ony need one to see an example please @echo off set /p pkgpacked=Input name of PKG that you want to exctract (without extension): cd tools PkgView.exe -ex ../"%pkgpacked%.pkg" cd.. del /q %pkgpacked%\*.* cls xcopy /s %pkgpacked%\*.* . cls dir …

Member Avatar
Member Avatar
+0 forum 5

Hello all! So, I'm giving a demo of a program that I've written for my boss. The program is loaded with test code that I use to ensure various options an routines are set properly, and show up in a listbox in the application (was going to remove it once the program was completed). One of the aspects of the program is that a command window pops up showing the results of an external application process. The boss would really like for me to remove the CMD window, and have the output of that piped into my listbox. Is that …

Member Avatar
Member Avatar
+0 forum 6

I did a code which can run cmd of windows from java, and also I stored the result of that cmd in a string variable, my question is is it possible to get a substring from that variable from where I had stored the output of the cmd. I want to put a statement that create an action if a substring is found in the cmd output string variable. here are my codes: public static void main(String[] args) throws IOException, InterruptedException { runWndCommand("ping 192.168.11.3"); } public static void runWndCommand(String cmd) throws IOException, InterruptedException { Runtime runtime = Runtime.getRuntime(); Process p …

Member Avatar
Member Avatar
+0 forum 2

I am trying to access "My Network Places" on my work desktop via cmd prompt. However, when I do listing on any directory, "My Network Places" does not show up. Is there a way? Thanks,

Member Avatar
Member Avatar
+0 forum 3

Hi I am trying to access my "My Network Places" through cmd window. Is that possible? So far, when I do the listing using the "dir" command, "My Network Places" is not showing up anywhere. I can get to it using the mouse and gui. Thanks,

Member Avatar
Member Avatar
+0 forum 1

Hello everyone I've been searching for help for a long time and still can't find somebody to solve it for me :(, The problem is im not good at explaining it , But here is the problem I'm creating an application in visual basic 2010, and i was aiming to use the The windows command "cmd" inside of the application that im creating in vb, For example, If i wanted to use the cmd on windows, i can go to start menu+search "cmd" and then start using it, But what i wanted it is instead of having to go to …

Member Avatar
Member Avatar
+0 forum 6

Hello Community, I was wondering if there is a way to stick a cmd window/process that i called from my vb form to the bottom of the form like the picture: (below) ![form2](/attachments/large/3/form2.png "form2") And so where ever i move the form the cmd windows will also follow. Also is there a way to hide the cmd windows in the taskbar. Please help

Member Avatar
Member Avatar
+0 forum 1

when I try to enter the C: root, it goes to C: \ Users \ PC1> so I've tried pressing E: so it goes to E:> when I saw press C: so it goes to C: \ Users \ PC1> again, it has worked until today, but now it does not work, why would it not now, I have tried to restart the computer but it still does not work. I have tried the following commands c: it does not work cd to go one directory back, does not work in E: it works

Member Avatar
Member Avatar
-1 forum 7

I found the syntax to change a user password through command prompt. I am using: net user username password I have sucessfully changed the password to a regular password. I can not figure out how to change it to a pass-sentence. How would I write the syntax for a password with spaces in it? For instance, please explain how I would write "My new password." in cmd...because this doesnt work: net user testuser2 My new password. I am sure that it is case sensative, no? If its case sensative for the password, why wont it recognise the sapces as part …

Member Avatar
Member Avatar
+0 forum 3

Hello Community, I was wondering if it's possible to attatch a command prompt window to a visual basic form. EG. (Below (i made this as an example)) ![example8](/attachments/small/3/example8.png "align-left") Something like that. Please help.

Member Avatar
Member Avatar
+0 forum 2

Hi, is there a way to get the FTP Welcome banner (not the welcome message, but the banner)? What I'm trying to do is to discover several AXIS security cameras over a network using FTP. When I try to FTP into a camera using cmd.exe, the camera answers like: C:\>ftp <ip address of camera> Connected to <ip address of camera> 220 Axis 2100 Network Camera 2.12 Feb 05 2001 ready. <------- User (<ip address of camera>:(none)): What I'm trying to get is just the "220 Axis 2100..." part. I already tried sending the ftp command to a cmd and read …

Member Avatar
Member Avatar
+0 forum 3

Well, as you might know, when you are attempting to run a script from poweshell and have not used: Get-ExecutionPolicy You will get File C:\scripts\test.ps1 cannot be loaded because the execution of scripts is disabled on this system. Please see "get- help about_signing" for more details. At line:1 char:19 + c:\scripts\test.ps1 <<<< So i did use this `get-executionpolicy` thing at the end. And i got a lovely message from the console: Restricted So i tried Set-ExecutionPolicy RemoteSigned But then from the console i got another message: Get-ExecutionPolicy : Cannot bind parameter 'Scope'. Cannot convert value "RemoteSigned" to type "Microsoft.PowerShell ExecutionPolicyScope" …

Member Avatar
Member Avatar
+0 forum 5

I am trying to create a gui that will interact with an existing external console application, e.g. the user only changes information in text boxes or radio buttons and that will prompt the VB.net program to sumbit a certain set of commands. I will create a folder for the end user that has only two programs in it, the VB.exe and the OtherProgram.exe. I have tried using ProcessStart with SendKeys to send information to the terminal with limited success (errors include multiple instances opening, entering "ttttttteeeeeeexxxxxxtttttt" instead of "text") and also Shell(OtherProgram.exe) and SendKeys with the same result. I am …

Member Avatar
Member Avatar
+0 forum 4

So, even thou I have searched throughout the forums, I couldn't get a clear answer, maybe perhaps I'm a noob @ Python. As a beginner, I don't know much about Python, and it's frustrating to search the net and not find the actual answer. So, I'm working on this project, and I stumbled upon this thing: what I want to to is to open the command line(I'm working in Windows 7 ultimate) from a Python file, change the directory, of whatever is there, like, from the start cd c:\\ to the actual c: directory. Next step comes from the user, …

Member Avatar
Member Avatar
+0 forum 3

I was dragging and dropping flv files onto this bat file so I could watch in fullscreen on my second monitor:[CODE]set vlcPath="C:\Program Files\VideoLAN\VLC\vlc.exe" %vlcPath% %1 --video-x=1366 --video-y=768 --width=300 --height=300 --fullscreen --no-video-title-show --no-embedded-video --no-qt-fs-controller[/CODE] but would rather write a batch file with a menu so I could simply select the video I want and it would run with the above parameters. here is what I got so far [CODE]@echo off color 07 title VLC Video Menu echo. echo What you tryna watch?!?: echo=================== echo. echo 1. Adapter Cards - Part 1 of 2 set choice= set /p choice=Type the number to …

Member Avatar
+0 forum 0

I can compile following code using "cl A.cpp" but i want to compile with an input file A.in and generate output file A.out.. is there any why to do that from cmd.... [B]A.cpp[/B] [CODE] #include<stdio.h> int main(){ int n; while( scanf("%d", &n) ){ if( !n )break; printf("%d\n", n); } return 0; } [/CODE] A.in [CODE] 1 2 3 4 5 [/CODE]

Member Avatar
Member Avatar
+0 forum 4

Hi, I am building a VB.NET app which amond other things, deploys a scheduled task to run test.bat when A Windows Server 2008 Backup is cancled. I have the app all working which runs a command which, when works, will be the event creation command. I figured out how it would work for something in the "System" event log, however I want my task to run based on a Backup event I want to attach my event to EventID 8 (Backup Cancled) within the "Applications and Services Logs/Microsoft/Windows/Backup/Operations" log So far I have this: [CODE]SCHTASKS /Create /RU Administrator /RP p455w0rd …

Member Avatar
+0 forum 0

So, I am running into an issue. I am wanting to display the contents of the open CMD window in my Rich Text Box. Any help? Thanks.

Member Avatar
Member Avatar
+0 forum 7

Can you kindly tell me why I am getting a runtime exception when trying to run this code? [CODE] Sub BtnNowClick(sender As Object, e As EventArgs) Dim myProcess As New Process Dim processFile As String = dlgFolder.SelectedPath Dim pyLocationDel As String = Path.Combine(dlgFolder.SelectedPath, "pdfmerge.py") Directory.SetCurrentDirectory(dlgFolder.SelectedPath) myProcess.Start(pyLocationDel) myProcess.WaitForExit() System.IO.File.Delete(pyLocationDel) End Sub[/CODE] Basically, what I want, is to detect for a process to be finished and delete a specific file if the process is finished. I'm getting this error when trying to execute the code: [CODE] System.NullReferenceException: Object reference not set to an instance of an object. at lgaPDF.MainForm.BtnNowClick(Object sender, EventArgs e) …

Member Avatar
Member Avatar
+0 forum 1

Hi, I am behind a SQUID proxy.I need to set proxy settings for cmd.I'm using win7 so proxycfg cannot be used.I used netsh like this: netsh winhttp import proxy source=ie Internet explorer had my proxy settings already.Now the problem my proxy requires username/password authentication.I do not know how to set the username and password in command prompt.Any help would be greatly appreciated. Thanks in advance, Prasanna.

Member Avatar
+0 forum 0

some commands working properly(notepad ,control(control panel))... but how to execute commands "dir" like that my code is ... [CODE] public class test1{ public static void main(String args[])throws Exception{ Runtime r= Runtime.getRuntime(); Process p1=r.exec("notepad");//working fine Process p2=r.exec("control");//working fine Process p3=r.exec("test1.java");//cannot run Process p4=r.exec("dir");// cannot run } } o/p: F:\studies\java\test>java test1 Exception in thread "main" java.io.IOException: Cannot run program "test1.java": CreateProcess error=193, %1 is not a valid Win32 application at java.lang.ProcessBuilder.start(Unknown Source) at java.lang.Runtime.exec(Unknown Source) at java.lang.Runtime.exec(Unknown Source) at java.lang.Runtime.exec(Unknown Source) at test1.main(test1.java:18) Caused by: java.io.IOException: CreateProcess error=193, %1 is not a valid Win32 application at java.lang.ProcessImpl.create(Native Method) at java.lang.ProcessImpl.<init>(Unknown Source) at …

Member Avatar
Member Avatar
+0 forum 10

hello friends..got a problem again.. I'm developing a software for one of our assignments.I have coded that program using Netbeans but we have to upload the assignment as one java file.So I created one java file and again checked in netbeans as a single file.It works perfectly.And then I tried to compile and run that file using command prompt.But then It generate some errors. I'm attaching a image of errors generated and the source file.Please can you people help me out ? [CODE] import java.io.*; import java.util.*; class newMain { public static void main(String[] args) { ArrayList<house> House = new …

Member Avatar
Member Avatar
+0 forum 9

Hi, I created an app. I have some files which I can open with this app. So I made the association with the commands below: [CODE]assoc .bengi=BengiFile ftype BengiFile="C:\Program Files (x86)\Bengi\CreateAS.exe" "%1" %*[/CODE] After these, I can see that my file's icon has changed according to my app's icon. But when I double-click on it, the app is not opened. Can you tell what is wrong? Thanks in advance.

Member Avatar
Member Avatar
+0 forum 1

I've run java programs in Command Prompt before and it worked, but today I tried and it's saying: 'javac' is not recognized as an internal or external command, operable program or batch file. I am running Windows Vista and have four (4) files under Java: jdk1.6.0_23 jdk1.6.0_24 jre1.6.0 jre6 Umm, help? Thanks, - [B][I]WolfShield[/I][/B]

Member Avatar
Member Avatar
+0 forum 1

The End.