-4
votes
0answers
43 views

batch file for 3day and monthly backup

I have to create a batch file it should function like this It should take a backup every three day with date folder name"c:\wamp\xyz" of this folder after very 10 backup that is a month. so at the end ...
0
votes
0answers
53 views

Wants to create a Batch file with following conditions

I'm having one great challenge according to create a batch file. Here is my situation I'm having folder full of folders and files(note all the files are in ".apf" extension). I want to create a empty ...
1
vote
2answers
79 views

How do I actually open a program from a batch file? All it does is open a command prompt with that file name [duplicate]

I'm currently trying to learn Batch file scripting so maybe I'm just not seeing what I'm doing wrong but I am just making a very simple batch file that opens up a text file. Here is the code I am ...
2
votes
2answers
174 views

Trying to read a text file content and set variables values from that

I have a batch file that creates a text file with its output like the following: RESULT=0&SECURETOKEN=SmH3kciXiVkiwD0i70CwKYgAR&SECURETOKENID=2013031414280240&RESPMSG=Approved The ...
2
votes
2answers
126 views

How to get continuously updating environment variable in batch file

I would like to access the updated environment variable in 2nd Batch file, which is changing continuously using 1st batch file. The e.var changing continuously using 1st batch file but I am getting ...
0
votes
1answer
278 views

Batch file to obtain system info of remote servers list with unique login credentials

I'm not familiar with scripting. I have a task at hand which requires to check server uptimes to make sure if they were actually re-booted when they suppose to. I was going through Google Search and ...
0
votes
2answers
87 views

batch - copy files to few computers over lan

I would like to copy \some\files to \computer1 \computer2 and \computer3 or better to c:\computerlist.txt How to do some loops in batch files?
-3
votes
1answer
35 views

How to avoid copying same folder using batch

I have a batch which downloads latest folder and copying to a particular destination from particular Source path but Its dowloading the latest file among the available folder in source path even if ...
1
vote
2answers
451 views

How do I open a random file in a folder, and set that only files with the specified filename extension(s) should be opened?

How do I open a random file in a folder, and set that only files with the specified filename extension(s) should be opened? (While preferably, supporting Unicode filenames too.) I've already looked ...
2
votes
1answer
96 views

Programming a little file to change between headset and monitor speakers?

I think there is a way to write a little file in Batch, I believe to change the default sound output system. What's the language that's written in and how can I write it (I am running Windows 7)? ...
1
vote
2answers
423 views

How to batch truncate a file by a set amount of bytes?

I have ~300 files that need to be truncated (I need to remove a specified number of bytes from the beginning of the file). I can do it one by one using a hex file editor, but given the number of files ...
0
votes
2answers
295 views

copy works where xcopy and robocopy does not work

Network admin allowed me to read-access only 1 file from a subfolder of a shared folder on a server and I don't have permissions to even view upper level folders, but when I open that folder I can see ...
3
votes
1answer
143 views

Batch files: Outputting into txt file

I'm trying to output the dir c:/[x:x etc list into a text file as well with the following code DIR >"Input Data".txt The above works but it doesn't display exactly what is output onto command ...
2
votes
1answer
197 views

copy list of video file names to text file along with their runtime?

Copy list of file names to text file? I am linking the above page because of its relevance to my question. Is there anything similar that can be done to output a 'plain' looking text file (or xml or ...
2
votes
0answers
67 views

Batch file to process the combining of 2 sets of pdf files together in a directory

I am looking for a script that can do the following: I have 500 pdf files with naming convention: SC####.pdf 500 pdf files with naming convention: AB####.pdf I want a batch file to check if there ...
1
vote
2answers
144 views

How to create a batch file to extract information from a file

Someone help me to create a batch file to extract information from a file and create another with that information? The file "version.log" contains only the information "v1.0" I want to create a ...
4
votes
5answers
11k views

Copy list of file names to text file?

Could anyone recommend a program / widget / batch file which would allow me to copy the names of files in a directory to a text file or to a clipboard? Many thanks!
0
votes
1answer
67 views

Batch rename files using AntRenamer or equivalent

I've read through some of the other batch rename threads, but couldn't find an answer to my problem. Also, I'm using AntRenamer (portable) because I'm uncomfortable using the command line. Basically, ...
1
vote
5answers
3k views

How to list all files on all hard drives with output in MS-DOS batch?

How can I list all files (including system and hidden) on all hard drives (not removable drives)? I think in something like a: dir -a -h *.* /s > file.txt but this is for the specific drive ...
2
votes
3answers
279 views

Batch search and replace?

I have a few thousand files that I need to search and replace. Is there a software that can open a directory of files, scan those files and then search and replace? I'm aware that you can script ...
2
votes
3answers
641 views

How to copy one file into multiple subfolders at once on a Linux server?

I have a folder on a Linux server with 35+ subdirectories, along the lines of: aa.foo.bar.baz ab.foo.bar.baz .. bp.foo.bar.baz I have a file that I want to copy into each of those subdirectories. ...
0
votes
1answer
249 views

need batch files script for Copy files from one directory into multiple directories

in our regular work we have 500 to 600 hundred voice files we need to distribute in user so we are doing copy past one one files manually we have list of files copy source and destination. now we need ...
0
votes
1answer
154 views

How to re-save web.config using command prompt

I'm using a simple cmd batch file to deploy my Asp.net MVC web application to server network share. The problem I'm having is that my DLLs can't be simply replaced by new files since existing ones ...
1
vote
1answer
304 views

Windows 7 batch: Change to program folder before starting program

My program opens nicely with a Windows 7 shortcut. I want that in a batch file. Contents of shortcut [full path] copied into *.bat opens program minus needed hidden parameters. I tried preceding with ...
1
vote
1answer
443 views

Starting Multiple Internet Explorers in a Batch File

In Windows XP, I am trying to start multiple IE7 with a batch file like this: @echo on "c:\windows\explorer.exe" "c:\windows\explorer.exe" "c:\Program Files\Internet Explorer\iexplore.exe" ...
4
votes
3answers
983 views

What does “type nul > somefile” do to “somefile” in Windows?

Specifically, does it overwrite the entire file on disk? I saw a batch script website recommend generating an FTP script on the fly and then "securely" erasing it with the command in title. Is there ...
1
vote
2answers
3k views

Delete all files and folders EXCEPT those with extension .svn and .svn-base

I need to remove all files and folders from a particular parent folder except those which have .svn as the foldername and those which have *.svn-base as their filename. Is there a Windows script that ...
0
votes
1answer
166 views

Download folders from dev server to local drive

I am developing a .net web application on a local environment. I have a dev server that the application is installed on. Within the web application on the dev server I have four folders that I dont ...
1
vote
7answers
862 views

Add option to boot.ini with batch

I need to create a batch file that adds text to the last line in a boot.ini file, for example the last line of my boot.ini is : multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP ...
0
votes
1answer
140 views

Program in batch file reading old version of newly altered file (XP)

I have a normal batch file, running on XP. First, program A apends data (a string) to the end of file X.dll (on the server). Then program B opens the file, and looks for the data. However, sometimes ...
2
votes
1answer
257 views

How to determine if file on another machine is being accessed

I would like to determine if a file on another computer (or network) is currently being accessed. Ideally, I want to perform this task in a batch file, but other methods of performing this feat is ...
3
votes
4answers
1k views

Using Robocopy for file rotation

I am looking for a way to use robocopy to rotate log files. Currently I have a batch file using robocopy to copy files and log the results to a specified folder location. What I would like to do is ...
1
vote
1answer
584 views

batch copy files with error log on missing permissions

I'm searching for a tool to batch-copy files, that should support the following points: copy files from a net-share report any errors show errors only or filter log on errors don't stop on an error ...
7
votes
2answers
292 views

Batch check if mp3 is playable

I just managed to recover lots of mp3 from a bad HDD. Is there a way or tool to test all these files if they are playable? I don't want to hit next a few thousand times
3
votes
2answers
840 views

Windows Batch Scripting: Newest File Matching a Pattern

This would be lightning quick in linux, but I'm not familiar enough with windows flavour of batch scripting. Basically I want to look for a series of files matching a certain wildcard, and get the ...
0
votes
1answer
306 views

Extract files from WInZip, perform action, then extract next file

I've got a zip file that contains hundreds of files. Originally the files were in their own directories. Unfortunately, whoever zipped the file did not preserve the directory structure and some of the ...
0
votes
1answer
234 views

How to distinguish folders from files in a batch script? (Or how to copy & rename-timestamp them indiscriminately?)

I want to create a batch file to copy files or folders in a specified directory and append the date and time to their names. Here's my actual code: @echo off Set _bpath=T:\Backup\ if [%1]==[] goto ...
3
votes
3answers
892 views

Task scheduling Batch Files in Vista

Wondering if there is some trick to scheduling a batch file to run in Vista. I have tried almost every setting/arg I can think of with no result other than an error, or the command window opening ...
2
votes
2answers
5k views

Group policy on windows sets hidden files as invisible upon startup

This is a policy I can't change and the people who set it won't, since not all people under the policy need to see those files anyway. However, I dislike going into the options dialog and clicking it ...
0
votes
1answer
478 views

How to run a batch file to backup to VPN drive?

I have a VPN into a client and I want schedule a batch file that will do some file copying to backup some data. Problem is how do I automate to connect to the VPN if not connected and also unless I ...
2
votes
5answers
2k views

How to move a file to another PC on the network?

Here is what I am after. I have 2 PCs connected on a network and one of them prints out an excel spreadsheet every night to a specific folder. is it possible to use a batch script to copy that file ...