Tagged Questions

The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
2answers
29 views

Batch file reads in text file and replaces quotes with variables into new file?

I have customer Pizza lists that i have saved into 5 seperate txt files from my database in this format: Filename = 25Percent.TXT "555-1211" "555-1212" "555-1223" ... ect Each list is a phone ...
4
votes
2answers
43 views

How can I replace “cut” in Windows command prompt?

I have a directory with a set of subfolder, matching a name pattern, like: sub-123 sub-0815 sub-4711 Inside this folders I have some files with the same number on the name as it has been found in ...
1
vote
1answer
46 views

How to change desktop background of a specific user in a batch file [closed]

Possible Duplicate: Schedule Windows XP wallpaper change without additional apps I think this is not a duplicate because I asked how to change the background of a different user not the ...
4
votes
1answer
49 views

What can cause the move command to return “0 files?”

I have a batch file which uses a move command to pull files from another computer: move \\otherpc\source\directory\*.bin c:\destination\ Normally, if there are indeed no files which match the ...
0
votes
1answer
19 views

Batch script for creating tasks?

Is there a way to create a batch script to add tasks to the Windows Task system? I need to setup 2-3 tasks per system but I want to be able to run a script to do it.
0
votes
1answer
24 views

Batch file - wait or quit if a process running

I have 2 small batch files that change the target location of a junction point (mkref /d), in order to switch between 2 iTunes libraries. It works well, but I would like it to stop if iTunes is ...
0
votes
0answers
6 views

WinMerge batch copying

I use WinMerge to deploy changes between our DEV, TEST and PRODUCTION environments. I realize this is a scary deployment system but it's really the best I can do given the situation at this time. ...
1
vote
1answer
30 views

offscrub07.vbs cannot access registry when ran as part of a startup script

I am creating a script to automate a deployment of Office 2010. Office 07 was not installed in a way that provides a clean upgrade path, and in an attempt to do things the right way I am clearing it ...
2
votes
1answer
32 views

Use the data from input string as a set of variables

I want to extract some data from input string (e.g. name1,name2,name3...), and then use all of them as a variables (e.g. var1=name1, var2=name2, varN=nameN). The number of 'names' can be different. I ...
2
votes
1answer
46 views

use variables inside if and for loop

I have the following code: echo off set n=11 set m=12 set /a nme=3 set /a mdiff=nme-1 pause if %n% NEQ %m% ( if %mdiff% LEQ 3 ( for /l %%C in (1,1,3) do ( if %%C EQU 1 ( ...
0
votes
0answers
40 views

Import into Excel a list of filenames and dates from dir command

First I would like to introduce the problem in hand. We have a file repository containing code files (*.sql ; *.xep ; *.dll ; *.aspx ; *.gif) that you are going to submit to Production pretty soon. ...
0
votes
0answers
41 views

Batch file could not copy the specific line

I tried this code in the batch file but it could not work. I wanted to take the first line from the DefaultGateway.txt and replace the 3rd line ip address in NewFile.txt. Here's my batch file: ...
1
vote
3answers
68 views

Native windows cmd program to download a file

I'm struggling with the windows commandline for years. Is it possible to download a file over http(/https) with the programs that are shipped with windows by default? I know that I can download or ...
0
votes
0answers
54 views

Rename and transfer files over network with a batch file

I have a folder C:\Data which contains continuously generated .csv files named after the date in format YYYYMMDD.csv, e.g. 20120510.csv. I want to rename and transfer all files except the one for the ...
2
votes
2answers
66 views

use numeric variable to create a file name

I have a script which does not work: set /a num=0 for /L %%C in (1,1,31) do ( set /a num+=1 set day=%num% for /r %%1 in ("Folder\Day_%num%.txt") do echo %num% ) I ...
0
votes
1answer
78 views

Find and move hidden files from sub-directories with batch file not working

I'm trying to use this batch file to find and move files... but it does not work on hidden files. What's missing? @echo off setlocal set root=E:\backup set dest=E:\Tmp for /f "delims=" %%f in ('dir ...
0
votes
2answers
57 views

How to batch insert text on photos?

I am on linux/Ubuntu and wondering what is the easiest way to add copyright text to a couple of jpeg images.
0
votes
0answers
25 views

Copy files with start and end date specified

I have a batch script to copy a directory with files in it xcopy "C:\Test" "D:\Test" /D/E/C/R/I/K/Y But I neet the script which would copy only those files older than specified date&time1 and ...
1
vote
1answer
71 views

Set Windows XP simple start menu via CMD/Registry

We're using temporary user accounts and when logging in, every time the classic start menu is restored. The new two-column start menu is not blocked by policies. I can turn it on manually, but I want ...
1
vote
0answers
51 views

Refreshing Crystal Reports through Excel Macro

At work we have an ancient Ingress database that wont allow me to make links between tables using the SQL Query editor in Excel 2007. My current solution is to generate the data in Crystal Reports, ...
0
votes
2answers
57 views

how to make a folder with the same name as a file in command prompt (Recurse subfolders)

Ok I have like 15,000+ files I need to do this to. I tried this my root directory is C:\asf> the command is: for /r %x in (*.asf) do aifdump -hr "%x" "%CD%" but the files are going to my root ...
1
vote
1answer
37 views

How to output batch command to null

@echo off mode con:cols=40 lines=2 echo BJNNAHQT4YRV57GITREWQ88|clip cls echo Wireless Password copied to clipboard. timeout 2 > NULL How do I make timeout not print any text?
3
votes
2answers
140 views

Run a CMD comand from a key stroke?

I'd like to run a certain batch when I hit some given combination of keys. It's as simple as, when I hit, say, CTRL+D, I want to execute the command C:\scripts\run. Is there any way to do this, ...
0
votes
0answers
44 views

How can I get my docx documents into evernote including formatting and images?

I want to import all of my Word documents into evernote. I need the formatting retained and any images in the documents must be included. I have 1500 documents so batch processing is a must as well.
0
votes
2answers
104 views

Cut a part from a filename (windows batch)

I got files named like this: cam1(word1 word2 wordN) (24-04-2012 00-11-13).mpg cam2(word1 word2 wordN) (24-04-2012 00-11-13).mpg cam3(word1 word2 wordN) (24-04-2012 00-11-13).mpg Need to cut (word1 ...
0
votes
1answer
48 views

Output filenames with for loop in a batch file

I want to rename files with a batch command and capture the original and renamed files in a list in order to provide a cross reference (doing a DIR /OS >file both before and after the batch file is ...
0
votes
1answer
91 views

running tshark command in windows batch file

I have written a batch file that runs a tshark command to filter fields from a wireshark pcap file and write them to a csv file. When i ran on the windows cmd CLI, i had to change the current working ...
1
vote
1answer
44 views

A program to cut a big image into a bunch of little images

I am making a tileset for a game in GIMP, and the thought of cutting out each individual piece (the game environment will be destructible, so we're talking about a lot of pieces here) is not a ...
0
votes
0answers
146 views

How to make 7-zip for individual files in the folder older than X days using batch script

I need two batch scripts doing the following tasks: zip individual files with the same extension (say .pdf) which have a date of creation older than X days. Also I need the final archives to be ...
1
vote
2answers
280 views

Looking for utility to batch change created/modified date of multiple files in ascending datetime (windows XP/7/Mac/Linux)

I'm looking for a utility that batch/bulk modifies file datestamps (date-modified and/or date-created) to the second accuracy but does so in ascending incremental order, e.g. File1 2012-04-18 ...
2
votes
3answers
107 views

How to compile .bat file using QT Creator

Question: How do I compile a .bat file using QT Creator? More info: specifically, I am trying to install Windows Image Writer and the download only includes source files. The README.txt tells me to ...
3
votes
2answers
185 views

Wget - if / else download condition?

I want wget to prefer a certain filetype over another, if the files have the same basename. For example: if foo.ogg available, don't download foo.mp3 the way i use wget so far to ...
0
votes
1answer
99 views

Why is my batch file doing nothing for 46 seconds before a forced quitting?

I have figured out what part of the code is doing this but dont know how to fix it... Here's the code: Set _Path=Private For /F "Delims=" %%I In ('Attrib "%_Path%"') Do Set _Attribs=%%I If ...
0
votes
0answers
39 views

Is is possible to call /min name.bat?

I know it is possible to start /min name.bat, bt is it possible to call /min name.bat?
1
vote
1answer
612 views

VLC command line batch video conversion

I am trying to convert some .webm file to mp4. In the GUI I select the following settings for the conversion: Video: Codec: H-264 List item Bitrate: 512 kb/s Frame Rate: 23.97 fps Scale: 1 ...
0
votes
3answers
163 views

Trying to hide a folder and unhide it in the same batch file with the attrib command

I am trying to hide a folder with a batch file, using the attrib command and I also want to unhide the file with the same batch file. can i do this as a single batch file? or do i have to call another ...
0
votes
0answers
41 views

Getting file owner on network share via dir

I have a batch file that does several things, and among them is: dir "\\network_share\directory" /Q /A:-D /S > output.txt The file then writes out lines like this: 01/01/2012 01:01 PM ...
1
vote
1answer
80 views

Windows CMD command to run a command inside every subdirectory?

I have a batch script I wrote called "joiner.bat." It needs to run inside each of 730 sub-directories of a folder. The joiner.bat file has already been copied into each of the sub-folders, it just ...
0
votes
0answers
31 views

Adobe Fireworks - Output each image into multiple file sizes with a SINGLE batch command?

I'm using Fireworks CS5, I've found how to create a batch process and save it as a custom command. However, I want a single custom command to resize, rename and export each file I give it into several ...
2
votes
2answers
180 views

Programatically associate file extensions with application on Windows

I've just recently reinstalled Windows and in setting up my environment I've noticed that all my associations for the various programming languages I edit in Notepad++ have gone (naturally). I am ...
0
votes
1answer
205 views

Automatically connect to VPN when initiating RDP Remote Desktop connection and then disconnect VPN when done

I know I can create a batch file to initiate a VPN connection followed by an RDP session, however I want to know if it's possible (in Windows 7 and ideally Windows XP as well) to have the VPN ...
1
vote
1answer
182 views

Open file with a batch file pinned to the taskbar

How do you get a file opened by a batch file pinned to the taskbar? In XP you could just drag your batch file onto the quicklaunch section of the taskbar, then any file you drop on that icon would be ...
0
votes
3answers
107 views

Excel or Batch - Trying to Automate Text Correction (Many Changes; One or More Characters Each)

I have a lot of lines of text. I can put them into a text file or into an Excel spreadsheet. They need many changes. Here's an example of a before and after: Input: I'm buying one! Only ...
1
vote
1answer
83 views

Check for only numerical input in batch file

In the Windows NT-based command line (mostly for XP or higher), is there a way to verify if a switch being provided is a number only? Depending on the number, I want it to loop through the code x ...
0
votes
2answers
153 views

Unable to copy files from protected folders

When I try to run the following copy %HOMEPATH%\"My Documents"\test.txt %CD% from c:\backupSettings I get the error: Access is denied. 0 file(s) copied.
0
votes
1answer
78 views

Read Metadata from multiple files (namely Images with Copyright info)

I'm attempting to produce a report of metadata from images within a network drive and all of its subfolders to check copyright information and other metadata (Creators, Authors etc). Recursively and ...
2
votes
0answers
123 views

Is there a way to copy the file paths of ALL active windows' opened files? (for saving and restoring your Windows session across a restart)

There is a program I know of called Twinsplay - Professional Edition, which among its other functions, can 'session save' your current open files (i.e. user-opened files - whatever is actively ...
0
votes
0answers
91 views

Command to close window from Command Prompt

I have some scripts to do some work for me on Windows 7, and one issue I have is that my most used script lives on a flash drive, clears out the Drivers folder, then opens the Drivers folder for me ...
2
votes
1answer
66 views

Kaspersky is blocking my batch file

I made a batch file that is seen as malicious by Kaspersky. How can I tell that it is an acceptable file? I've found how to add an exception, but I can only add .exe, not .bat.
1
vote
0answers
157 views

Auto rename files through excel sheet or through folder of these files

I have excel sheets with lot of files names like.. I want to renames all files through excel sheet and renames files itself.. Or 2nd condition is , if i rename files my self and rename in excel sheet ...

1 2 3 4 5 11