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

Hello guys, I am working on something at work. We actually have a server whereby all the profiles of users working on citrix are stored. there is a routine work that we do to take ownership on a profile, rename the profile and copy the files of the old profile to the new one. WHen i say profile it is basically a folder with sub folders and files. I wrote a little automation script on notepad ++ to do that but the thing is that there is no inheritance on the profiles so it is taking ownership only on the …

Member Avatar
+0 forum 0

well i tried to execute the following code.. #include<process.h> #include<conio.h> #include<dos.h> #include<stdlib.h> #include<stdio.h> void main() { system("dir"); getch(); } but it did not execute the system command... what went wrong?? plz mail me at [email]prajwaludupardx_369@yahoo.co.in[/email]

Member Avatar
Member Avatar
+0 forum 6

I'm in a class and we discussed what set /p does, but I wasn't paying close attention, I was wondering if anyone could explain to me what set /p does and an example of how I can use it in a batch file for dos

Member Avatar
Member Avatar
+0 forum 3

int menu(c){ int choose; do{ printf("*MENU\n"); printf("*Press 2 to move down\n"); printf("*Press 4 to move left\n"); printf("*Press 6 to move right\n"); printf("*Press 8 to move up\n"); printf("*Press 5 to switch\n"); printf("*Press 0 to quit\n"); printf("Please enter your choose: "); scanf("%i",&choose); if(choose==2){ }else if(choose==4){ }else if(choose==6){ }else if(choose==8){ }else if(choose==5){ }else if(choose==0){ printf("Exit the program!"); }else{ printf("Invalid Input!\n\n"); } }while(choose!=0); return 0 The coding abobe show my function for my menu. what i want is it will repeat the menu without going to new line in DOS

Member Avatar
Member Avatar
+0 forum 2

Here is what I'm trying to do: * Take input with scanf() * Pass input to function * Beep frequency associated with input I have notes defined, e.g `const in C5 = 523.25;` I want the user to be able to input "C5", and have the computer beep at a frequency of 523.25. When I run my code, I get the same sound no matter what I input, even if it is just random letters. I am fairly new to C, but I think what is happening is that the function is trying to beep at the frequency of the …

Member Avatar
Member Avatar
+0 forum 5

We have this subject called Computer Oraganization... we are now using dos debug commands but the problem with my laptop is that when I type debug command...it will prompt 'debug' is not recognized as an internal or external command, operable program or batch file. The C:\Windows\system32 do not have a debug.exe I did try copying the debug.exe from another laptop with dos debug command to my laptop but still it did not work. What should I do to have a dos debug command? [COLOR="Red"]Thanks in advance :)[/COLOR]

Member Avatar
Member Avatar
+0 forum 5

hi frenz ....after succesfully installing the windowserver 2008 iso on a vmware...installation was successfull, but didnt see any thing like windows start button. is just showing a command prompt and the windows desktop....what can i do from here am jst confuse bcause the desktop is blank...and no way to access like the server manager or any apps or so....an i tried typing dcpromo, thinking maybe it reguires me to create a domain or domain controller b4 it will show the features of the windows.

Member Avatar
Member Avatar
+0 forum 2

I have to write two scripts, one in bash and one in dos. My dos one works perfectly but I'm having trouble with my bash one. The assignment is to make a script that takes a command line argument (from a test script) and return the change. So if the number is 94, the script will say There are 3 quarters. there are 1 dimes. There are 1 nickels There are 4 pennies. if the number is 25 it will say that is 1 quarter. if the initial number is 0, give a message saying there is 0 cents entered. …

Member Avatar
Member Avatar
+0 forum 2

Dear friends, is there a way to execute a dos command in a frame inside a wx.window GUI (and not in the usual external window)? Thanks

Member Avatar
Member Avatar
+0 forum 5

I have an batch script that needs to concatenate several hundred of lines (72 chars) in one long line for base64 to decode. He used line reading because of the windows XP line limit (8191 chars per line). The script currently has 2 issues at result: It exports with 2xquote character between my 72 char lines (like so: "addf4534@$") and base64 doesn't like that It creates several 2-3 lines extra. The last line being the correct one. Here is the script (install.zip its what is going to be encoded for later decoding): @echo off CALL D:\utilities\base64.exe -e install.zip install.txt set …

Member Avatar
+0 forum 0

Hi, how to print a text file using command prompt through usb dotmatrix printer any one please help me... Regards, Jineesh

Member Avatar
Member Avatar
+0 forum 1

... The name of program is i think it is function and structured programming waa hard to explain ahmm.. if you input a number 1 temperature must be goes in program then after that i need to input an exit like "ARE YOU SURE YOU WANT TO EXIT?" then Y for yes N for No. if no the program stay in ](null) the program in temperature if yes she will back in the menu in 1-10 then pick again please i need this thank you!!!! first timer in this site :) EXAMPLE. include<stdio.h> include<conio.h> int rafael; int temp; int grade; …

Member Avatar
Member Avatar
+0 forum 1

how can i convert xml based script; which is created by SqlYog software. I want to convert this xml based script to batch file (full coding from xml to batch file script; not only batch(.bat) format.) So i can run the synchronization / backup directly clicking with batch file. give me code for this procedure. like @echo off CLS...... type format.

Member Avatar
Member Avatar
+0 forum 2

hello ! i want to get some information about LAN traffic . in my office there are 15 employees are there , we are connected with modem ,i want to moniter there activities for example which sites they are visiting,uploading , downloading . some one tell me about netstat but this will show the information about my pc.can any one help me in this . Regards M.Waqas Aslam

Member Avatar
Member Avatar
+0 forum 3

I am using windows 7 ultimate 32-bit edition, But when I try to run any dos screen like command prompt, c++ compiler etc. They are not going to full screen mode, Please tell me how to run my c++ compiler or any dos screen in full screen mode ……in windows 7.. Thanks…. :-)

Member Avatar
Member Avatar
+0 forum 8

well it sounds simpler than OpenGL... I want to use DOS style graphics in my prog (look at SC2000) no need for animation or interactivity or PostPicture(). So the queston is what header/librays do I need and how do i use it? Google just brought up stuff on makeing your prog look dosy (like fullscreen)?Ok First poster gets a taco.

Member Avatar
Member Avatar
+0 forum 8

Hi guys. so i wanna code my own Simple Dos-like OS that boots to a prompt with the simple command of "Hello" which should load a message that says "Hello, World!". Would someone be generous enough to give me some source code that just boots and has the command "Hello". I can do everything else from there. all i need is basically the bootloader and the prompt. Thanks!

Member Avatar
Member Avatar
+0 forum 9

Detail on command line arguments with sample program to simulate the following DOS commands using cmmand line arguments - 1. copy 2. type 3. del 4. dir 5. rd

Member Avatar
Member Avatar
-1 forum 7

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

First, I apologize for posting this since it seems to have been addressed for every situation except mine (or so I can find), and I admit I am a complete novice. [B]Intro:[/B] I have a batch file which gets placed in a directory with target files, loops through the files in the directory, converting them using another program, and moves the output to a dated subdir. Each conversion takes about 30 minutes. The unfinished output file sometimes changes size as it is being converted, but this is quite slow. [B]Need:[/B] Some sort of progress or activity bar to indicate something …

Member Avatar
Member Avatar
+0 forum 6

Hi I have been looking all day trying to find a way to do this. I need to run a Batch file which is held on a server, the file path begins with a IP Address which DOS doesn't like. So i found the pushd command which assigns a temp drive letter from which you can run the Batch File. If i was simply running a normal program or file i would use: [code] Dim proc As Process proc = Process.Start("c:\BatchFile.bat") proc.WaitForExit() [/code] but my file path is e.g. \\10.10.10.1\Public\Folder\BatchFile.bat running from a command prompt if i type pushd \\10.10.10.1\Public\Folder\ …

Member Avatar
Member Avatar
+0 forum 1

I downloaded the latest WINE and I know it works because I downloaded two windows only compatible programs and they work. But now I'm trying to download and execute the .exe file for an awesome online game. It executes the file and a window pops up with the agreement terms. After I agree and hit next, a loader window appears but nothing loads. Thanks in advance.

Member Avatar
Member Avatar
+0 forum 2

How can i create a task to run a program by coding in vb6 and 2010

Member Avatar
Member Avatar
+0 forum 4

hi guys , what am i doing wrong here, i have instigated several approaches, in assembly 8086 using borland/turbo 7.0 pascal on win 98se (so i can communicate easily to parallel port and stipulation of assignment) my issue lies with being able to allow execution of a looped routine but keep a constant listen out for a keypress from the keyboard, at the point of the keypress the routine should jump to a call which then runs and returns back to the main routines loop. i have done as much as i can using interrupts but alas , even with …

Member Avatar
Member Avatar
+0 forum 7

I would like to know how to display more than 256 colors in DOS I already know about the color palette which can hold 256 colors and can be changed, but as soon as you change them the colors on the screen change. So how would I display more than 256 colors on the screen? It seems to me that this would be possible, since in my OS (windows) it looks as if it can display more than 256 colors. Any resources that can show me how to do this would be helpful, thanks.

Member Avatar
Member Avatar
+0 forum 2

Hi Guys, I was hoping someone can help me with this. I have a python program that reads and writes files in utf-8(unicode). When I run it in Eclipse, the output is perfectly fine. When I try making an exe file of my program it is not working. I also tried double clicking the python program to run it in windows dos but the same problem occurred. I tried running it in pythonWin still the same problem. Now I have a problem debugging my program since it is working perfectly fine in Eclipse. Is it a problem about encoding? I …

Member Avatar
Member Avatar
+0 forum 4

[COLOR="blue"]Good morning All I have a customer who has an old DOS application which he wishes to continue running on his new laptop with Windows 7. The software installs correctly and starts to run. Soon after starting it appears to issue a command to switch to full screen mode, at which point it falls over. It needs 640 x 480 resolution to run, which I have set in the properties for the icon. I have installed Virtual PC and get same results. I have also tried piping results to a file and tried an external monitor, all without sucess. I …

Member Avatar
Member Avatar
+0 forum 2

Can anyone give me an example of a DOS BAT file (script) that could FTP a file (variable)? I've got the Linux problem solved, but I need to do it in a DOS environment. Thanks, John

Member Avatar
Member Avatar
+0 forum 1

Hi All, I have a few dos commands that I would like to run / hardcode into my vb6 application my .bat file starts like this @echo off set drive=e:\Backup\ set backupcmd=xcopy /s /c /d /e /h /i /r /y I am setting the drive location using set drive=e:\Backup\ the running the backup command using set backupcmd=xcopy /s /c /d /e /h /i /r /y then my first command is echo Backing up My Documents if not exist "%drive%\%UserName%\My Documents" mkdir "%drive%\%UserName%\My Documents" %backupcmd% "%USERPROFILE%\My Documents" "%drive%\%UserName%\My Documents" echo Completed backup of my documents second command third command 4th 5th …

Member Avatar
Member Avatar
+0 forum 1

The End.