16 Solved Topics

Remove Filter
Member Avatar for
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
372
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 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 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 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
143
Member Avatar for Pravinrasal

Process p = Runtime.getRuntime().exec("C:\\tc\\bin\\" + prog_name , null); BufferedReader stdError = new BufferedReader(new InputStreamReader(p.getInputStream())); System.out.println("Here is the standard op :\n"); s1=stdError.readLine(); i have this code can anyone tell me how to run c program using java thanks !

Member Avatar for NormR1
0
197
Member Avatar for warlord902

Let me tell you I already got the tutorial on how to do this [url]http://db.apache.org/derby/docs/10.3/adminguide/tadminconfig814963.html[/url] But sincerely speaking I did not understood how to do any of the two methods described. Let me tell you my confusions and what I didn't understood and I am developing my project in netbeans. …

Member Avatar for warlord902
0
1K
Member Avatar for rhuffman8

I wasn't sure which section to post this under but I am working on an assignment in SQL and have created a batch file to make the tables, load the data into the tables, and then sends several queries to sql to get results. Is there a way I can …

Member Avatar for rhuffman8
0
171
Member Avatar for irenejd

I have an electronic subscription to a newspaper and I generally download and print the puzzles for doing them later. Due to health issues, I'm behind about 6 months, but I'd like to catch up. I'd like a script to automate the download and save it to my PC. I'm …

Member Avatar for irenejd
0
147
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 anthony07

I have this very weird project that my boss gave me. Given my cws.sql file inside "C:/", i need to create a batch file wherein it will automatically create database cws; and use cws; in MySQL Server. Hope Someone can help me. :'(

Member Avatar for qualitybrains
0
181
Member Avatar for Euphobia

Not sure this is the right place to put this. I have a batch file for a program that I'm writing, which takes a C source file, compiles it and runs it, and then tries to save the output of it to a .txt file. The program lets a user …

Member Avatar for Euphobia
0
166
Member Avatar for goodwin912

I've got a little app to resize and watermark images. At the moment it only does one at a time but I would like to get it to do a full folder of images in one go. I have done this previously in VB using loops but im new to …

Member Avatar for Tech B
0
227
Member Avatar for lastlight

Newbie problem. For some reason, I can't get this to work: [CODE] FOR /L %%A IN (1 1 23) DO ( if %%A==1 set drive=C: if %%A==2 set drive=D: if %%A==3 set drive=E: if %%A==4 set drive=F: if %%A==5 set drive=G: if %%A==6 set drive=H: if %%A==7 set drive=I: if …

Member Avatar for lastlight
0
409

The End.