• Welcome to TechPowerUp Forums, Guest! Please check out our forum guidelines for info related to our community.

BAT file/Script to find and replace files

cpetty

New Member
Joined
Jul 7, 2022
Messages
4 (0.01/day)
I need a Bat file that will find and replace a power point slideshow file on a machine in the systems program start up folder then run the new file. Every month they update the slide show and we display them on TV displays.
 

W1zzard

Administrator
Staff member
Joined
May 14, 2004
Messages
26,956 (3.71/day)
Processor Ryzen 7 5700X
Memory 48 GB
Video Card(s) RTX 4080
Storage 2x HDD RAID 1, 3x M.2 NVMe
Display(s) 30" 2560x1600 + 19" 1280x1024
Software Windows 10 64-bit

cpetty

New Member
Joined
Jul 7, 2022
Messages
4 (0.01/day)
What if its not a web document its a powerpoint slide we have stored on our network? Sorry for my ignorance here.
 

W1zzard

Administrator
Staff member
Joined
May 14, 2004
Messages
26,956 (3.71/day)
Processor Ryzen 7 5700X
Memory 48 GB
Video Card(s) RTX 4080
Storage 2x HDD RAID 1, 3x M.2 NVMe
Display(s) 30" 2560x1600 + 19" 1280x1024
Software Windows 10 64-bit
You should be able to pass the network path to powerpoint directly?

"C:\Program Files\Microsoft Office\root\Office16\POWERPNT.EXE" "\\wizzard\Hardware Launches\Intel 12th Gen vPro\12th Gen Intel vPro Press Pre-Brief Presentation + Appendix Final.pptx"

This just works for me
 

cpetty

New Member
Joined
Jul 7, 2022
Messages
4 (0.01/day)
We decided to make these non domain machines these will display on our tv's. I did get this to work and appreciate you sending me the structure to build from.

START "C:\Program Files\Microsoft Office\root\Office16\powerpnt.exe /s" "c:\_Lobby Slides\TV Lobby Slides for June.ppsx"

Next Question is how to make this run automatically when the file name changes every month depending on the month without intervention to change the file name in the script each month. Is there a way to have it run the latest .ppsx in the folder with monthly intervention?
 

W1zzard

Administrator
Staff member
Joined
May 14, 2004
Messages
26,956 (3.71/day)
Processor Ryzen 7 5700X
Memory 48 GB
Video Card(s) RTX 4080
Storage 2x HDD RAID 1, 3x M.2 NVMe
Display(s) 30" 2560x1600 + 19" 1280x1024
Software Windows 10 64-bit
Top