Search found 43 matches

by falcios
05 Jun 2021 08:57
Forum: DOS Batch Forum
Topic: Break out of script and goto menu
Replies: 6
Views: 4189

Break out of script and goto menu

Is it possible to break out of a batch file while it is running and have it return to the :Menu in the script?

Thanks in advance.
by falcios
01 Jun 2021 04:55
Forum: DOS Batch Forum
Topic: Commands don't execute from batch file but from CMD
Replies: 2
Views: 2473

Re: Commands don't execute from batch file but from CMD

Forgot to mention that when I use the call command to the bat file, it works.

Is there a limit to how many lines can be in a file. That was just part of the script.
by falcios
01 Jun 2021 04:10
Forum: DOS Batch Forum
Topic: Commands don't execute from batch file but from CMD
Replies: 2
Views: 2473

Commands don't execute from batch file but from CMD

I have this batch file that doesn't execute the commands but they work from the command prompt. It does echo the command on the screen but doesn't run any commands. Could you tell me what I'm doing wrong and how I can get it to run the commands? Thanks in advance. echo copy "c:\users\sfd\appdata\roa...
by falcios
31 May 2021 13:35
Forum: DOS Batch Forum
Topic: Color Change and Return to Default
Replies: 3
Views: 2756

Color Change and Return to Default

This is an example of some commands in my batch file copy c:\users\sfd\test1.txt d:\test echo --------------------------------- echo ----------COMPLETE---------- echo --------------------------------- copy c:\users\sfd\test2.txt d:\test I would like to have the 1st copy command line the default DOS ...
by falcios
23 May 2021 23:43
Forum: DOS Batch Forum
Topic: If not exist command
Replies: 1
Views: 2135

If not exist command

I have the following script

I want to go to :MENU if k:\dtsc does not exist
This script does not go to the menu.
Can you tell me how to update this line?

robocopy "c:\test" "k:\dtsc" /MIR /xf desktop.ini /e /np /tee /ndl
if not exist k:\dtsc GOTO :MENU

Thanks in advance.
by falcios
22 Jul 2020 11:40
Forum: DOS Batch Forum
Topic: Horizontal Scroll Bar in DOS Command Window
Replies: 2
Views: 2867

Re: Horizontal Scroll Bar in DOS Command Window

Thanks so much for your help Steffen, it worked great.
by falcios
22 Jul 2020 07:22
Forum: DOS Batch Forum
Topic: Horizontal Scroll Bar in DOS Command Window
Replies: 2
Views: 2867

Horizontal Scroll Bar in DOS Command Window

Hello,

The horizontal scroll bar in my DOS Command window has disappeared. What settings can I change to get it back?

Thanks in advance.
by falcios
04 Jul 2020 03:29
Forum: DOS Batch Forum
Topic: Robocopy show only new or changed files
Replies: 1
Views: 2780

Robocopy show only new or changed files

I'm using Robocopy with the following switches:

/MIR /xf desktop.ini /e /np /tee

Is there a switch I can use to display new and/or changed files only? Now it scrolls through all the files in the window view.

Thanks in advance for your help.
by falcios
11 Dec 2018 09:47
Forum: DOS Batch Forum
Topic: Batch file does not continue running commands
Replies: 2
Views: 2878

Re: Batch file does not continue running commands

Thanks Squashman, it worked great.
by falcios
11 Dec 2018 06:53
Forum: DOS Batch Forum
Topic: Batch file does not continue running commands
Replies: 2
Views: 2878

Batch file does not continue running commands

I'm testing this sample batch file using the /k switch

cmd.exe /k winver
pause

However, once it runs winver it is back to the command prompt. How do I setup batch file to continue processing commands?

Thanks in advance.
by falcios
02 Feb 2018 07:37
Forum: DOS Batch Forum
Topic: Robocopy switches - screen ouput
Replies: 1
Views: 2178

Robocopy switches - screen ouput

With Robocopy, I use these switches in my batch file:

/MIR /xf desktop.ini /e /np /tee


Is there a switch to show only screen output of changed or newer files? I prefer not to see all unchanged files scrolling through the screen.


Thanks in advance.
by falcios
11 Jul 2017 09:19
Forum: DOS Batch Forum
Topic: Xcopy command: a way to color code output result
Replies: 1
Views: 2780

Xcopy command: a way to color code output result

When using the xcopy command is there a way to color code the output result:

For example:
If 5 files were copied then color code the output information only.

Thanks in advance.
by falcios
14 May 2017 12:06
Forum: DOS Batch Forum
Topic: Microsoft tool to compare 2 directories
Replies: 9
Views: 8520

Re: Microsoft tool to compare 2 directories

Thanks Antonio for the script.

Can you tell me where do I specify the folders to compare? Can it prompt me to enter the folder names?

Thanks.
by falcios
13 May 2017 14:23
Forum: DOS Batch Forum
Topic: Microsoft tool to compare 2 directories
Replies: 9
Views: 8520

Re: Microsoft tool to compare 2 directories

Thanks for the response. I already have windiff and it does compare directories if there are the same. I was looking for a utility to go through folders and subfolders and output list of the what one folder has or has not, if there are duplicates or a single file.

Thanks.
by falcios
13 May 2017 09:24
Forum: DOS Batch Forum
Topic: Microsoft tool to compare 2 directories
Replies: 9
Views: 8520

Microsoft tool to compare 2 directories

Is there a Microsoft tool that will compare 2 directories?

I'm looking to see if there are duplicate files and their locations. Single files on one drive only, etc.

Thanks in advance.