Windows file management

General Macro Scheduler discussion

Moderators: Dorian (MJT support), JRL

Post Reply
Warren
Pro Scripter
Posts: 83
Joined: Sun Oct 08, 2017 11:57 pm

Windows file management

Post by Warren » Fri Nov 03, 2017 8:07 pm

I've been looking through the manual, command reference, etc, and I am thinking I may be missing some commands for file management. I may be looking for the wrong keywords or something.

Basically, I'm trying to automate basic file management, so looking for commands to:

Move a file from folder A to folder B

Copy a file from folder A to folder B

Put a shortcut to a given folder on the desktop

Delete everything inside a folder (regardless of number of contents)



In general, for future Windows management, is there a particular place I should be looking for commands. Is this where something like VB script comes in?

User avatar
Marcus Tettmar
Site Admin
Posts: 7378
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Re: Windows file management

Post by Marcus Tettmar » Fri Nov 03, 2017 8:44 pm

Look at the following functions:

MoveFile
CopyFile
DelFile
DeleteFile
DeleteFolder

To create a shortcut shell the mklink command via Run. Type mklink /h in a command prompt.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts