Text file containing a sequence of commands or program invocations.

learn more… | top users | synonyms (1)

0
votes
1answer
1k views

Batch file - copy file from parent folder - why the cmd file closed adter the run?

I'm using this code to copy files from the parent folder. But as soon as the code finish the execution, teh CMD window is closed. So I cannot read the result to see what the problem is. Here is my ...
1
vote
1answer
607 views

How to check return status of command invoked from command line in windows?

reg import RegFile.reg How to check return code of this command ?
3
votes
1answer
1k views

Fire batch (.bat) file execution and continue

I want to write a .bat file that starts executing another few .bat files, without waiting for the 1st to complete before going to the next one. Spawning multiple cmd.exe commands is OK. I tried doing ...
3
votes
4answers
7k views

Can I run bat file on 64 bit system?

I have a bat file that I ran successfully on my old Windows Vista 32 bit system. Now that I have upgraded to a 64 bit Windows 7 system, will it be possible to run the same bat file? Is there a ...
3
votes
2answers
2k views

How can I stop percentage expansion in a batch file?

(This is on NT based Windows like 2000, XP, Vista, 7) On the command-line, the percentage characters are ignored: wget ...
1
vote
2answers
3k views

FTP script won't transfer remote files to local computer

This is a follow up to FTP BAT file - Windows Scheduled Task. I copied the FTP script, but I can't transfer the files to my local computer. All I get is this (server address omitted): 331 ...
6
votes
5answers
17k views

How to replace a single character in Windows filenames using a batch file?

I have a Windows Server 2003 server that has a whole bunch of filenames that need renaming. Basically, I just need all - (hyphens) replaced with _ (underscores), no matter where they are in the ...
1
vote
2answers
5k views

Windows batch command to display all network connections?

What Windows (preferably XP) batch command will list all of the network connections that appear in the Network Connections dialog? I've tried RASDIAL, IPCONFIG, NETSTAT, and NET commands with various ...
1
vote
2answers
4k views

Can I put comments in a sftp batch file script?

I'm using sftp batch scripts to automate some file transfers. Is there a syntax for putting comments in the batch files? For example: sftp -b mybatchscript.sftp nick@server Where ...
1
vote
2answers
7k views

Running bat file using Windows scheduler

I wanted to run a .bat file in Windows task scheduler, so I opened it, added a new task, browsed to the bat file, and... nothing happened. So I changed the timing to see if it'll run, and it didn't. ...
2
votes
2answers
7k views

Group policy on windows sets hidden files as invisible upon startup

I am an student and the computers at school are configured via a group policy to set hidden files to hidden. I can undo that by manually changing this in the menus however this gets really frustrating ...
1
vote
1answer
3k views

Displaying and storing Windows Batch file output

I've got a batch file written that runs a program we've developped, passing in a number of parameters. Whilst running the program in debug mode, a large number of debug messages are output, which it ...
2
votes
2answers
4k views

Setting multiple environment variables in a shell spawned via windows batch script

I have a batch file that spawns a shell with a modified path with the following command: cmd /K set PATH=%PATH%;<additional path locations> I want to set additional environment variables for ...
2
votes
5answers
3k views

How to automatically 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 ...