Search found 3 matches

by Maverick
23 Jun 2023 22:08
Forum: DOS Batch Forum
Topic: Is there a way to subtract 2 days from this batch file?
Replies: 5
Views: 19824

Re: Is there a way to subtract 2 days from this batch file?

Aacini wrote:
23 Jun 2023 18:40
You could also slightly modify the code in order to precisely decrement two days in a very simple way...

Antonio
That's exactly what I am here asking for help.
by Maverick
23 Jun 2023 11:55
Forum: DOS Batch Forum
Topic: Is there a way to subtract 2 days from this batch file?
Replies: 5
Views: 19824

Is there a way to subtract 2 days from this batch file?

@echo cd \ D: cd "D:\Misc\Downloads" For /f "tokens=1-4 delims=/ " %%d in ("%date%") DO REN "flyer.pdf" "Store weekly ad %%g%%e%%f.pdf" %windir%\explorer.exe /n,/e,"D:\Misc\Downloads\" :END Every Sunday morning, my local grocery store releases their weekly sales ad onto their website. I would load ...
by Maverick
28 Mar 2023 19:56
Forum: DOS Batch Forum
Topic: How to issue command but not have it execute
Replies: 1
Views: 2846

How to issue command but not have it execute

I need to open up the command shell within a very specific directory, let's say "C:\My Project". I did a little bit of searching on the internet and found a very simple batch file. cd /d %~dp0 Start cmd.exe This works fine but I need to have the letters "fc.exe" typed at the command prompt as soon a...