79 Topics
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 …
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 …
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 …
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?
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% == …
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 …
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 …
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: …
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 …
**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. …
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 …
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 …
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
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 …
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 …
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 …
hi i need to create a batch file when it is double click it should run the code
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 …
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 …
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 …
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 …
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?
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. …
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 …
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?
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 …
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 …
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
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 …
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 …
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
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 …
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 …
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 …
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,
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
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 …
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 …
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 …
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
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".
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 …
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 …
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...
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 …
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 …
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" , …
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 …
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 …
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" …
The End.