Move 10 files related to one particulare CustomerNo to a directory and Needs to be automated - dos

I have 10 different xml files that are related to a CustomerNO
CustUSA_10201_20130912.xml,
CustCAN_10201__20130912.xml,
CustENG_10201_20130912.xml
etc.....
Cust USA_10202_20130911.xml,
Cust CAN_10202_20130911.xml,
Cust ENG_10202_20130911.xml,
etc...
How can I automate this so that all the 10 files related to each CustomerNO can be moved at once so when I process them I have all the 10 at a time.
Would really appreciate your help.
Thanks

This will work in Windows (not DOS but the long file names hints that you might not be in DOS)
move Cust*20130912.xml destination
And change 20130912 accordingly.

Related

Batch - Match files and folders by filename

Okay so I'm a complete noob at batch programming but I have not found a software tool that can do exactly what I need so I´m thinking a small batch program might be what I need.
I have a folder containing 210 files named: 0_107, 1_107, 2_107 etc. up to 209_107.
I then have another folder which contain 210 subfolders named: 0, 1,2 etc. up to 209.
I want to move 0_107 into folder 0 and 1_107 into folder 1 and so forth.
I have tried using the software tool RoboBasket but this would require med to create 210 rules and I might need to do this multiple times so this is not desirable.
Can anyone help me to create this small batch file ? - keep in mind I have no knowledge of batch programming
Thanks in advance and best regards
This sounds more like a PowerShell scripting task. I would learn a little more about folder and file management in PowerShell and write a script to execute what you need.
https://technet.microsoft.com/en-us/library/dd315304.aspx

automate directory creation in windows 7

I have been tasked with restructuring the directory of files relating to employees. As it is now, each employee has their own folder and all the files are grouped into 3 subfolders, divided by year. I'd like to sort the files in each of the folders into 4 other subfolders that are organized by subject matter. Is there any way to automate the creation of folders and transferring of files into these folders?
If this is not a sufficient information about my issue, please say so and I will attempt to provide a more accurate explanation.
You could use PowerShell or any number of scripting languages/tools (Perl, Python). The trick may be knowing which target folder each of the files should go into. If you can determine that from the name of the file or the file type it will be trivial, but if there is some other criterion it may be harder.

put a time limit on the program

Kindly advise on below requirement
We need to include a trial period or a time limit to a program. We have only the exe file. We do not have the source files. Is there any tool available to include a trial period (like limiting 30 days) to this exe file
Thanks
There is a bunch of such protector-applications, for example:
Enigma - http://enigmaprotector.com/
WinLicense - http://www.oreans.com/winlicense.php
VMProtect - http://vmpsoft.com/
and others
You could create an own exe-file which calls your trial-exe (which you should rename to something like .lib). After 30 days your exe deletes the trial-exe. But if the users gets behind this it will fail ;-)
Hmm, you can secure this a little by encrypting the trial-exe and decrypting it on runtime. It your be ideal if the decrypted file would not resist in a temp file but only in memory.

Bowse a folder with over one million files inside?

I'm using window server 2008, and i have a folder that contain over one million files.
I want to get list of name of top 100 oldest files in this folder.
Using Window Explorer and it take very very long time (take about 2 days then crash).
Is there any way to do that fastest?
Thanks for any help.

VB Script - move files older than 180 days from modified date to another directory

i would like to know if there is a vb script which will move files from a specific location and there subfolders to another location based on their modified date and to keep the original directory structure in the new location.
The results to be saved in a .txt file.
thx in advance.
This former question here on SO
VBScript - copy files modified in last 24 hours
is a sample from which you can start from. If you have any difficulties to adapt it to your needs, come back and ask again.

Resources