Simple Batch file not closing??

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
jbalbo
Posts: 1
Joined: 08 Sep 2016 09:40

Simple Batch file not closing??

#1 Post by jbalbo » 08 Sep 2016 09:44

Hi

Newbie here so I'll apologize ahead of time...lol

I have a simple batch file to delete a file if it exists and copy another
Actually I would like to do a move instead of a copy :)

The main problem is when I run the batch file the command window doesn't close
I have googled it and tried an exit but no luck
any ideas would be great

Thanks
Joe

Squashman
Expert
Posts: 4486
Joined: 23 Dec 2011 13:59

Re: Simple Batch file not closing??

#2 Post by Squashman » 08 Sep 2016 10:39

I do not think anyone here is omniscient. Would help to see your code.

ShadowThief
Expert
Posts: 1166
Joined: 06 Sep 2013 21:28
Location: Virginia, United States

Re: Simple Batch file not closing??

#3 Post by ShadowThief » 08 Sep 2016 21:29

jbalbo wrote:The main problem is when I run the batch file the command window doesn't closee

Why would it?

foxidrive
Expert
Posts: 6031
Joined: 10 Feb 2012 02:20

Re: Simple Batch file not closing??

#4 Post by foxidrive » 09 Sep 2016 08:22

ShadowThief wrote:
jbalbo wrote:The main problem is when I run the batch file the command window doesn't closee

Why would it?


It could be run from a shortcut that leaves the window open.

jbalbo, Squashman's point is one that is made very frequently. See here: viewtopic.php?f=3&t=6108

Post Reply