Skip to content
View in the app

A better way to browse. Learn more.

Tip.It Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

basic .bat

Featured Replies

There's some basic file manipulation that I have to do at my job on a regular basis, so I decided to try my hand at scripting. I was having a bit of trouble, so I figured I'd come here :) It's just a simple .BAT.

 

Objective:

Delete old directory from the user's desktop (always ends in suffix *_Agenda)

Copy new directory (changes weekly, format is Date_Agenda) to desktop.

Open date_agenda folder, and start the date_agenda.docx file.

 

Problems:

copy X:\ command only copies files; it does not copy entire directories.

The start command does not work, as it needs an exact filename to start and the filename changes weekly. Is there a way around this?

 

@echo off
echo Deleting old board files. 
del c:\users\board\desktop\*_Agenda
echo Complete!
echo Finding Directory....
cd X:
dir X:
echo Found directory, copying. Please wait.
copy X:\date_agenda C:\users\board\desktop\
echo Completed copying.
start c:\users\board\desktop\date_agenda\date_agenda.docx
pause

guideicon.png

Is the date format always the same? If you're running this file weekly it might be possible to grab the system date and figure out the folder name that way.

polvCwJ.gif
"It's not a rest for me, it's a rest for the weights." - Dom Mazzetti

  • Author

yes, it goes, for example, 05.24.10_Agenda. How do I grab those specifics from the system, and not the time as well?

guideicon.png

No problem, glad you got it working :)

 

If you want, I know there's a simple free batch to EXE converter out there somewhere :P Don't remember a name/url though.

polvCwJ.gif
"It's not a rest for me, it's a rest for the weights." - Dom Mazzetti

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.