Search found 43 matches

by falcios
21 Sep 2023 06:32
Forum: DOS Batch Forum
Topic: Microsoft Office settings copy to another profile on Windows 10
Replies: 4
Views: 6302

Re: Microsoft Office settings copy to another profile on Windows 10

Thanks Batcher for your help.

I will give it a try. I have a basic knowledge of DOS commands. I hope I can make your batch file work for my situation.

Thanks in advance.
by falcios
20 Sep 2023 05:22
Forum: DOS Batch Forum
Topic: Microsoft Office settings copy to another profile on Windows 10
Replies: 4
Views: 6302

Microsoft Office settings copy to another profile on Windows 10

I backed up most of my Microsoft Office settings, some of which include Excel Templates Normal Template Toolbars AutoCorrection ACL Files How do I copy these settings files to 5 different profile names. In the script, I don't want to repeat all the commands for each profile. I would like to have onl...
by falcios
07 Jul 2021 16:58
Forum: DOS Batch Forum
Topic: Robocopy syntax
Replies: 1
Views: 2761

Robocopy syntax

This is a sample batch file. This script copies a file from the source with one name and in the destination it is a different name. copy "c:\users\test\sample.txt" "d:\test\sample july 2021.txt" Can Robocopy do this, copy file from source with one name and the destination with a different name? If s...
by falcios
06 Jul 2021 12:17
Forum: DOS Batch Forum
Topic: Copy and Echo
Replies: 2
Views: 3407

Re: Copy and Echo

Steffen, the code worked perfectly. Thanks so much.
by falcios
06 Jul 2021 09:02
Forum: DOS Batch Forum
Topic: Copy and Echo
Replies: 2
Views: 3407

Copy and Echo

I copied: copy c:\users\test\sample.txt" "d:\test" I get 1 file(s) copied. I want to see the full path of what it is being copied. I used echo copy c:\users\test\sample.txt" "d:\test" but when I ran the batch file it showed the full path but did not copy What command can I use to view the full path ...
by falcios
03 Jul 2021 11:12
Forum: DOS Batch Forum
Topic: Copy and rename on one command line
Replies: 4
Views: 4318

Re: Copy and rename on one command line

Thanks to aGerman, Rasil, It worked. You're gurus.
by falcios
03 Jul 2021 10:07
Forum: DOS Batch Forum
Topic: Copy and rename on one command line
Replies: 4
Views: 4318

Re: Copy and rename on one command line

Thanks Rasil for your reply.

How would I combine the 2 commands together on one line.

if exist "d:\test\sample.txt ren “Sample June 2021”

I can't figure out how to make it work using your example.

Can you help?
by falcios
03 Jul 2021 09:46
Forum: DOS Batch Forum
Topic: Copy and rename on one command line
Replies: 4
Views: 4318

Copy and rename on one command line

This is a sample script robocopy "c:\users\test" "d:\test" "sample.txt" /xf desktop.ini /np /tee /ndl /xx echo. if exist "d:\test\sample.txt ren “Sample June 2021” Exit 2 ******** echo. in the command line if exist "d:\test\sample.txt ren "Sample June 2021" Exit2 I want to copy and rename at the sam...
by falcios
02 Jul 2021 16:11
Forum: DOS Batch Forum
Topic: IF EXIST, CONTINUE
Replies: 2
Views: 4972

IF EXIST, CONTINUE

What commands do I need in my batch file so that if a file exists, then continue?

File: "c:\users\test\sample.txt"

If the file exists, then continue

How would I go about doing this?

Thanks in advance.
by falcios
14 Jun 2021 05:36
Forum: DOS Batch Forum
Topic: Break out of script and goto menu
Replies: 6
Views: 5421

Re: Break out of script and goto menu

Thanks ShadowThief for your response.

I hope someone has the answer.
by falcios
13 Jun 2021 16:47
Forum: DOS Batch Forum
Topic: Break out of script and goto menu
Replies: 6
Views: 5421

Re: Break out of script and goto menu

Here is a sample of my batch file below. When I do CTRL + Break, I get the message terminate batch job {Y/N) If I select N, I want the batch file to return to the :MENU label. Is there a way I can do this? Thanks in advance. @echo off :MENU Echo Press 0 for DISCONNECT Echo Press 1 for IPCONFIG Echo ...
by falcios
06 Jun 2021 19:56
Forum: DOS Batch Forum
Topic: Return to the 1st batch file
Replies: 4
Views: 4211

Re: Return to the 1st batch file

Thank you so much it worked.
As you suggested I have added a second call batch file in the original.
by falcios
06 Jun 2021 19:36
Forum: DOS Batch Forum
Topic: Return to the 1st batch file
Replies: 4
Views: 4211

Re: Return to the 1st batch file

Per your suggestion, I changed the second batch file to drivesmap.bat and it still doesn't return to the 1st script.

Any idea how to fix this?

Thanks
by falcios
06 Jun 2021 18:36
Forum: DOS Batch Forum
Topic: Return to the 1st batch file
Replies: 4
Views: 4211

Return to the 1st batch file

1st batch file contains the call command call "d:\sfd\dtsc\admt\bat\net use.bat" Few lines from the 2nd batch file :MENU Echo Press 0 for Test Echo Press 1 for Test1 Echo Press 2 for Test2 Echo Press 3 for Test3 Echo Press 4 for Test4 Echo Press 5 for EOF Echo Press 6 for Exit set /p input=Enter 1-6...
by falcios
05 Jun 2021 12:01
Forum: DOS Batch Forum
Topic: Break out of script and goto menu
Replies: 6
Views: 5421

Re: Break out of script and goto menu

Thanks for your reply.

Towards the top of the batch file i have the :MENU label. When the script is running and it is stopped by CTRL break, I want it to go to the :MENU label.

How can this be done?