79 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
147
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 Alv45525

I have 2 share folders \\testing\test1 which contain sub folders sub1,sub2,sub3,sub4,sub5 and \\testing\test2 which contain sub folders sub2,sub3 Need to know how to create a batch file on notepad to verify existance of sub folders from test1 and create them on test2 only if they do not exist in test …

Member Avatar for Reverend Jim
0
197
Member Avatar for philh

Can anyone suggest a script that will rename a file with the existing filename appended with date stamp? Something that can be used in a .bat file?

Member Avatar for Reverend Jim
0
268
Member Avatar for mohammed_46

The Code was made in notepad++ and made intoa .batch file. I want to add more questions but find it difficult. can some help @echo off title game :menu echo 1) start echo 2) intro echo 3) exit set /p menu= if %menu% == 1 goto game if %menu% == …

Member Avatar for Reverend Jim
0
281
Member Avatar for Link_1

I need to write a batch script. I have a folder on my desktop name "folder". inside it has many sub folders. there is no way of telling how much sub folder there are. Insidde some of sub folder there is a file. folder - sub folder 1 - sub …

Member Avatar for Reverend Jim
0
401
Member Avatar for UBAB_Support

I'm looking to make an exe or batch file that will delete a folder, however the folder location changes based on the User, so I'd like it to determine this based on what user is currently logged in, or by asking the person running the exe/batch to type in the …

Member Avatar for UBAB_Support
0
244
Member Avatar for shimanto.khan.758

HOW TO MAKE A ASSISTANT-USING NOTEPAD Hi I am Shimanto . We know that assistant is an important thing for a man. Then why shouldn't we make a assistant in our computer or PC . So let's make it: @echo off Color 71 CLS Title "My Assistant" Echo Pause Start: …

-2
206
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
290
Member Avatar for chicpang

**Hi, How would I write a Windows Command to delete all folders recurvsively with a specific wildcard name ({*}) under a specific path that is older than 10 days? I would like to run this on the command prompt and I also want to run it as a batch file. …

Member Avatar for Reverend Jim
0
1K
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 saadi06

Hi, I am trying to run the a scheduler that executes a batch file.In this batch file I am trying to run synctoy application and the application runs successfully. The scheduler runs successfully. I want to add a script in batch file that exit the command prompt once synctoy synchronization …

Member Avatar for cuzintone
0
167
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
332
Member Avatar for spowel4

I'm trying to figure out how to disable some of the right-click Windows context menu items for certain users (i.e. users with less security), can someone point me in the right direction please? Specifically, the lower-security users should only have New-Word Document, New-Excel Document, and New-Powerpoint Document in their right-click …

0
163
Member Avatar for Programmer629

hey guys. long time no see. anyway, I bought a new windows 8 computer and was wondering if someone could tell me how to start the music app in a batch file. or just tell me the directory it was installed in because I know how to do it I …

0
67
Member Avatar for jtodd

Morning all, I am trying to write a batch file that will search a specified folder for file containing certain keywords in the file name. Once one of those files is found I would like it to search the files content for a keyword. If the keyword is found I …

Member Avatar for Reverend Jim
0
1K
Member Avatar for raj09cs42
Member Avatar for stultuske
-1
127
Member Avatar for dennis.olfers.9

I'm using old fashioned batch files (cmd) to get apps running with the commandline parameter. But I want to expand this a bit more, and maybe one of you can help me how to. As example for the file I have now @echo off ECHO cleaning system.... ccleaner.exe /AUTO ECHO …

0
51
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
254
Member Avatar for herms14

Hi Guys, I just would like to ask for some advice on my script. I am trying to get all MS hotfixes installed in a server using WMIC. I have a text file called [B]patches.txt[/B] that contains all the hotfixid's and I want it to validate if it is installed …

0
74
Member Avatar for scheppy

I know that .bat isnt java, but I dont know were else to place this thread So ive finished my program, has sounds, images and other junk all in a folder on my desktop. as soon as you open the folder you can see the file program.java and also folders …

Member Avatar for DavidKroukamp
0
354
Member Avatar for moone009

Windows Server 2005 [CODE]XCOPY "\\14.4.7.10\d$\FTP\TEST\Prod\*.txt" "D:\MANU" /D /E /C /R /I /K /Y PAUSE[/CODE] ---This works perfectly [CODE]XCOPY "\\14.4.7.10\d$\FTP\TEST\Prod\*.txt" "D:\MANU" /D /E /C /R /I /K /Y [COLOR="Red"]/DA#24H[/COLOR] PAUSE[/CODE] ---when I add the portion in red it fails Any ideas?

Member Avatar for sburks92131
0
110
Member Avatar for Arbus

Hello all, I was trying to make a folder secure. So when the folder is opened( or any operation is performed on the folder like deletion) an application would open and ask for password. The application i have is an exe file which is dos based and asks for password. …

Member Avatar for aquamarine_kath
0
621
Member Avatar for z_zendegi

hi to all I have a dos command that can backup system state in winserver2008,it write it in cmd when i run it and say y to its question but I want to have this command in bat file for a scheduled task that runs daily,I create this task and …

Member Avatar for z_zendegi
0
126
Member Avatar for darkdai

hi all, i was asking my lecturer about how to make a batch file which can only be executed and not viewed and he told me that i should try to package it, does anyone know anything about that?

Member Avatar for davidchilders
0
84
Member Avatar for MasterGberry

I am trying to write a simple Batch File to launch an exe using some basic CMD PRMPT functions. I know exactly what I need to do, but my only problem is I don't know how to detect the Desktop Folder? What if its in Documents and Settings, or if …

Member Avatar for MasterGberry
0
2K
Member Avatar for JessieJ

Hello, before I ask anything THIS IS A HOMEWORK QUESTION! I know alot of people dont like to help with homework, however I have really tried on this and I still dont think I have it. Im not asking for the answer as I do need to learn it myself …

Member Avatar for Fest3er
0
128
Member Avatar for sham.karankal

i want coding and also form whic indicates detected computer on network/and also want how to make batch file which display the ping host's mre than 50 at a time

Member Avatar for kvprajapati
-1
57
Member Avatar for gian10890

good day sir., I'm having trouble in creating batch file for my work... ok, here's the scenario: i want to create a batch file to COPY a FOLDER to the storage, wherein the FOLDER consists of text files. i successfully created a batch file where i copied txt.files in the …

Member Avatar for Narue
0
71
Member Avatar for Duki

Hey all, I'm trying to write a batch file to parse a text file I have. Here's the pseudo code I'm trying to pull off: Example makefile.txt: [quote] text text text text text text text text text text text text text text text text text text text text text T1 …

0
71
Member Avatar for raghamayee

hello everyone, i need to write a batch file for validating xml files and have to report the false positives and false negatives,successes and failures...can anyone help me in that

Member Avatar for griswolf
0
73
Member Avatar for miacubin

Hello daniweb members, I hope you can assist me... My apologies for very rusty DOS knowledge. The batch file I'm trying to write must... ... recognize which drive letter has been assigned by Windows to ONE USB memory stick ... format it according to very precise instructions. So I've determined …

Member Avatar for CWorl
0
202
Member Avatar for Mah1

Hello All, I have created a batch file on a Windows XP PC, pings over 10 servers 24x7x356 and redirects the error messages <100% loss> to an output file which is a notepad. Now I would like to add code to this bacth file that sends e- mail to me …

Member Avatar for CWorl
0
196
Member Avatar for shizumaru21

Good day i have stumbled upon this forum and browsed some of its threads and found them really interesting. I am starting to code my own batchfile, much like it kills some pesky exe's and removes some malware generated registry entries. My problem is "How can i search and delete …

Member Avatar for D1G1T4L3CH0
0
159
Member Avatar for adam2009

Hello, I have used the following article to create N local users: [url]http://www.codeproject.com/KB/system/everythingInAD.aspx?msg=3448333#xx3448333xx[/url] How do I set some batch file ,that I have wrote ,to be executed right when each user logs-in? (Include it in the statup functions to be executed). Cheers,

Member Avatar for adam2009
0
178
Member Avatar for makdu

Hi, i have created a batch file for uninstall a c# application. [code] @echo off @msiexec /qr /x {********}[/code]But when the user click the uninstall option, a command window is poping up. I searched in net for a solution, but didnt get any solution. Please help

Member Avatar for kvprajapati
0
84
Member Avatar for justice igwe

here is how the code works. small but powerfull. this code will unblock the command prompt of any system that has been disabled. Just open your NOTEPAD, then type in COMMAND.COM .. then save the file using the extension " .bat " example igwe.bat then run the program .. enjoy …

Member Avatar for Ancient Dragon
-5
377
Member Avatar for polisetty

I tried to copy the content of one folder to another using the batch file. The below is the example. copy *.class c:\tomcat 5.5\webapps\serv\WEB-INF\classes In this, *.class is source which is correct c:\tomcat is the second arguement 5.5\webapps\serv\WEB-INF\classes as 3rd arg the 2nd ,3 rd arg are wrong how to …

Member Avatar for musthafa.aj
0
87
Member Avatar for avirag

Hi all, Can anyone tell me HOw to make a batch file for creating a shortcut on desktop in HTML....? Well i made a application in HTML, and i put this application in CD, now i want that when user run that CD, So Cd will automatically create a shortcut …

Member Avatar for avirag
0
81
Member Avatar for camthalion95

Thought this would be the best place for this. I need a batch file to print whats on the screen. maybe i could write it to a file and print the file, but i can't remember how to write a specific section to a file. PLEASE HELP

0
126
Member Avatar for Kadence

How does one make a batch file that can pass arguments to another command? For instance say I ran "c:\files\run.bat -a -b", this would call "c:\folders\do.exe -a -b".

Member Avatar for Member #356299
0
437
Member Avatar for Vidya Bhama

Hi, I call a vbscript file from my batch file. I need to pass a variable from this vbscript file to batch file. can anyone please let me now how to do this. batch file looks like this cmd.bat ------------ @ECHO OFF cscript "D:\samp.vbs " isql -S sername -d dbname …

Member Avatar for Vidya Bhama
0
215
Member Avatar for JeyC

I am writing a batch file to automate and carry out a list of tasks. One part of my work is to add certain repetitive lines to a text file. However each time the line must be accompanied by a number running from 0001 to 7000. (I need 0001 as …

Member Avatar for cguan_77
0
134
Member Avatar for Merlin33069

Would there be a place to submit a batch file tutorial in the Daniweb Site I would like to write a tutorial and submit it to Daniweb for Batch files Teaching people to automate tasks and to give back to Daniweb...

Member Avatar for Comatose
0
131
Member Avatar for papafreebird

Hello, I want to run a program from a batch file minimized. Normally that can be done using [code] start /min myprogram.exe [/code] However I want to run this program with a for loop like so [code] for %%a in (*.avs) do myprogram.exe -parameter1 -paramater2 [/code] This works great for …

0
48
Member Avatar for PhiberOptik

Hi Guys, I am co-founding a on-site technician company with my best friend (as a means to get through university) and to make life easier I bought an ethernet to usb connected. I have the driver files (Setup Information & System file) and I want to make a batch file …

0
55
Member Avatar for nathanpacker

Hey, I need to write a little .bat script that will place a predetermined string of characters into the clipboard, ready for immediate pasting. Is there any way to do such a thing? For instance, in my script, I would like to set the "mystring" variable to say "#$ERdfcv34/l" , …

Member Avatar for johnny3d
0
171
Member Avatar for PhiberOptik

Hey folks, I have a question for you. I have 4 computers that use a particular program that requires a login. But i only have 2 accounts. I have a command that works via batch file that launches the program and logs in but i dont know how to specify …

Member Avatar for PhiberOptik
0
146
Member Avatar for Merkava

Hello All, I am trying to write a batch file that will allow me to open several browsers at the same time. For example, I want to open [url]www.google[/url] in one browser and [url]www.yahoo.ca[/url] in another browser and so on..... What is happening is that I one browser with google …

Member Avatar for Merkava
0
87
Member Avatar for animedude123

Hey, I was wondering if anyone knew of a way to have a vb.net app that can load a batch file, and run it inside the vb.net app. Something like, when you open the application, you will see a blank window with a big button that says "Start Batch File" …

Member Avatar for techtix
0
76

The End.