50 Topics

Member Avatar for
Member Avatar for darren2005

Hi, Can anyone advise on why the following code does not replace an XML value? It seems the code does not bring up any known errors as such and when the code completes the settings.XML file is blank. Still learning this stuff so please be gentle : ) Thanks in …

0
142
Member Avatar for hassanumair1

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 …

Member Avatar for jimmichaels29
0
2K
Member Avatar for sarfrazashfaq

HI All! I need to have some help. I have a python function name is abc.py and variable is declared in abc.py, variable name is 'uname'. How can i call variable name 'uname' of abc.py in my batch file name testing.bat and get uname value in my batch testing.bat file? …

Member Avatar for jaakdentrekhaak
0
5K
Member Avatar for tony75

Hi I try to upload my picture to local server via FTP Batch file I created script.batch which is contain open 127.0.0.1 Tony 123abc #cd public_html lcd C:\xampp\htdocs lcd XAMPP Shared Folder binary mput C:\Users\Laptop\Desktop\XAMPP Shared Folder\AboutMe.jpg bye I have also another script(upload.batch) which is contain `ftp -i -s:script.bat` When …

0
361
Member Avatar for Doogledude123

I'm creating an application that with continuously attempt to run a list of programs until they are open. I'm having an issue when it comes to programs that require administrative priveleges however. I've done some searching and found the below script (in createElevationScript()) that *should* run a program with administrative …

Member Avatar for Doogledude123
0
4K
Member Avatar for Batch Devil

I was wondering if it is possible to make [I]an online multi-player game server preferably in batch.[/I] I am hoping to make a PowerPoint game that can be multi-player with the help of batch. Also even answers that do not suit my requirements fully will help, because i am 11 …

Member Avatar for Jaxonpoop123
0
2K
Member Avatar for protas

Hello Guys, I apologized if I may have misplaced this post as I cannot see CURL on any category. Here is my situation. I am trying to create a batch file which will pull up information from a fleet of devices via its web interface. I am using CURL to …

Member Avatar for BobMCT
0
310
Member Avatar for kamalashraf

i want to make a batch file to ping an ip. it must have 4 conditions. 1: if destination ip is reach able then it should display "host reachable" 2: if destination ip not reachable then it should display "host not reachable" 3: if request times out then it should …

Member Avatar for kamalashraf
0
269
Member Avatar for divakar.it

Here is my another challenge. When I pass the file name into for loop, I want to get a specific word from the file name and need to pass that as a parameter as well. For eg: When there are 5 files in a folder say Encrypted_abc_1.xml Encrypted_xyz_2.xml Encrypted_hij_3.xml Encrypted_klm_4.xml …

Member Avatar for divakar.it
0
233
Member Avatar for vibhu mishra

i m trying to run a mp3 file on dosbox plateform by c .i put the following code in to the batch file start c:\xyz.mp3 and trying to call this as system("c:/a.bat"), the system funtion is returing 0 but it is not running it. But the same code working well …

Member Avatar for cgeier
0
337
Member Avatar for CPT

First, to explain what I want to do: I have a folder structure like this: BSDS300\images\test\ -which contains JPEG files, and some other files(only .jpg files are of interest) BSDS300\human\color\ -which contains many folders, in which I have .seg files with the same name as the .jpg file Example: BSDS300\images\test\3096.jpg …

Member Avatar for RikTelner
0
370
Member Avatar for panda_pow

Okay, there may already be a post out here that is similar to this, but I wasn't able to find anything that was helpful. Scenario: I have a zip folder that contains a folder structure (web site) and batch file. Objective: I need something that will enable a user to …

Member Avatar for RikTelner
0
204
Member Avatar for theashman88

I know with linux when I want to change the color code I can type in echo -e \033[COLORm] Is there an easy way like this to change the color in windows scripting. I tried @echo off REM This program will list all the colors REM Selected by user input …

Member Avatar for cuzintone
0
6K
Member Avatar for theashman88

@echo off REM This batch file will play with shift command :loop echo %1 shift if %2 == GOTO end goto loop :end exit 0 When I inputted C:\Users\~\Desktop> Shift.bat 1 2 3 I got this 1 2 end was unexpected at this time. Why do I keep getting "end …

Member Avatar for gerbil
0
310
Member Avatar for theashman88

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 for cuzintone
0
301
Member Avatar for theashman88

![3a451fbd93eb17f84f06c7ac648bdcab](/attachments/small/2/3a451fbd93eb17f84f06c7ac648bdcab.PNG "align-left") I need to create this program for class. I'm not looking for the answer. I'm simply confused on how to create a batch file where I input a number and it gives me an option. Would I use the IF command if so how would I do it. …

Member Avatar for brooks.johnson.54
0
370
Member Avatar for raj09cs42
Member Avatar for stultuske
-1
122
Member Avatar for niksirat

Hi every one, I have a question. I have many files with this format: a...a-Cb...b-d...d a...a-b...b-Cd...d a...a-b...b-Cd...d-e...e so that : 1- a...a is a number with **m** digits, 2- b...b is a number with **n** digits, 3- d...d is a number with **p** digits, 4- e...e is a number with …

Member Avatar for rubberman
0
185
Member Avatar for observ

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 …

0
174
Member Avatar for sonu611

Hi all, I was looking for a way to execute windows batch file from java code, and I was able to do this with the following code. [CODE] Runtime rt = Runtime.getRuntime(); Process proc = rt.exec("cmd /C " + "path" +exec.bat"); [/CODE] The batch file refers to some other files …

Member Avatar for shahbaz07dbit
1
1K
Member Avatar for Manojit Ghosh

This is my first post in this forum. Suppose there is a web page with url : www.somesite.com/pages/1 I can save this page easily using Ctrl+s within a second. But my question is if there are say,600 web pages starting from www.somesite.com/pages/1 to www.somesite.com/pages/600 and I want to save all …

Member Avatar for LaxLoafer
0
303
Member Avatar for Doogledude123

when trying to output the string of a variable to a text file, the string try's to run and therefore pops up like this, %localDrive% 2>>fileCompare.log 'C:' is not recognized as an internal or external command, operable program or batch file. Any ideas?

Member Avatar for HTMLperson5
0
255
Member Avatar for Doogledude123

Heeey guys!! Where's the forum for Batch Scripting!?!? Imma noob if it's Shell Scripting... ~~Zephyr

Member Avatar for Dani
0
178
Member Avatar for dimitrije17

Hello I would like to know how to make .bat files with a time trigger some thing like this: I make a file with autorun and it ahs a time trigger and after two monts it opens this file... can someone please help me resolve this problem..... thanks...

Member Avatar for dimitrije17
0
251
Member Avatar for memz

help me in this code .. it is not work .. public static void CreateFile() throws IOException { File f; f = new File("myfile.bat"); if (!f.exists()) { f.createNewFile(); System.out.println("New file \"myfile.bat\"has been created"); } } public static void getFiles(String path) { File dir = new File(path); String[] children = dir.list(); …

Member Avatar for memz
-1
304
Member Avatar for spowel4

I need to create a service that will call a batch file. Here's the catch though - once the service calls the batch file, the command window that the batch file runs in must be visible on the desktop, it cannot run hidden. So far nothing I've tried results in …

Member Avatar for viljoed
0
230
Member Avatar for ginG3R

Hey guys, I've searched all over the web for help but couldn't find anything, so I've decided to give up and come here. Here's my problem: I want to be able to run system restore automatically. NOT to create restore points, but to restore the computer to either the most …

Member Avatar for RTFMID10T
0
290
Member Avatar for Staric

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 …

0
147
Member Avatar for ssreevidya.m

hai , I used LINQ in application. I want to perform batch update. For that i used the code as: [CODE] int[] istudentId = new int[]; int j = 0; for (int i = 0; i < GrdStudent.Rows.Count; i++) { if ((GrdStudent.Rows[i].FindControl("chkSelect") as CheckBox).Checked) { istudentId[j] = ObjStudent.Student_Id; j++; } …

Member Avatar for stbuchok
0
142
Member Avatar for Pravinrasal

this is in execute method() { Process p = Runtime.getRuntime().exec(command, env); } System.out.println(r.execute(" C:\\Program Files\\Java\\jdk1.6.0_21\\bin\\javac demo.java” , null)); System.out.println(r.execute(" C:\\Program Files\\Java\\jdk1.6.0_21\\bin\\java demo”, null)); i want to run demo.java from this code i used timer class also. i got the error "Illegal execution time" i dont know why when i run …

Member Avatar for NormR1
0
344

The End.