Search sequence within %APPDATA% - exe4j

Does anybody know how to use APPDATA in search sequence to locate folder c:\Users\test\AppData\Roaming\jre\ ?
I try with %APPDATA%\jre\ and %EXE4J_APPDATA%\jre\ but without luck.
Any help would be appreciated ...

Related

Search bulk files list

I need your help with this problem that I believe it could be solved with a batch file in powershell, I hope to be clear enough with my explanation.
I have a txt file (list.txt). In this file I have a list of more then hundred files name (company.doc, goods.xlx, prices.xls and so on).
Now I should search if these files are in disk L and the search result written a file named search.txt in this way:
company.doc FOUND L:\documents\december
goods.xls NOT FOUND
prices.xls FOUND L:\budget\2022
Thank you in advance for your help
MM
I tried to search a solution but I could not find any working.

copy all files from one folder to a destination folder name with a pattern match

I'm trying to work out how to create a batch file to copy files from a folder on a network share (such as D:\folders\folderA) to a local folder on my C: drive that matches a specific naming convention (such as C:\Users\john\folderddmmyy0600). In my case I only want to copy the files to a folder that matches something like folder1202210600 so is it possible to use a regex match to accomplish this?
For example, would something like this work?
copy "D:\folders\folderA" *.* "C:\Users\john\folder\d+"
My batch file writing is not good, but would appreciate if I can get some opinions on this.
Thank you
Will look into the PowerShell option Compo, thank you.

How to copy the names of the subfolders in a folder, so to use them in a batch program (command line)?

I need to check the files of a versioned system. To do that, I need to write a batcha program so to compare the contents of several folders containing the repositories.
So, my question is: how can I "read" the names of all the subfolders inside a folder, so to use these names later to find subfolders having the same names in a different repositories?
I suppose I may use DIR to print on the screen a list of these names but I don't know how to write it on a text file and then read it. Moreover, I should edit this kind of list, anyway.
Any suggestions or new ideas to solve this problem?
I thank gratefully who ever will answer.
it seems that you can get the subfolders using batch file from perl as follows:
system("start C:\\Temp\\mybatchfile.bat");
or you might try to pass your command suggested by #Stephan straight to system and try to handle what it is returned.

Batch: Relative directory/path

I created a small harmless batch virus (a prank), it is finished (on a USB) but I don't want to manually copy it and then I ran to a problem...
Is there a way to copy files relatively, from where the actual batch file is?
Something like this maybe:
copy "~Virus.bat" "%appdata%/microsoft/windows/start menu/programs/startup"
instead of
copy "G:\Files\Folder1\Folder2\Virus.bat" "%appdata%/microsoft/windows/start menu/programs/startup"
If somebody can help please do... Thanks!
This question may solve your problem, but a short answer for copying your file is using %~dp0. As said in this answer, this will give you the current path.
Try this:
copy "%~dp0Virus.bat" "%appdata%/microsoft/windows/start menu/programs/startup"

What is the *.cf7 file extension?

At work we have been given a .cf7 file from a client and been expected to know how to access it's contents. We suspect it is some sort of database or accounting records file, most probably propriety, as it was contained in a folder called "books and records".
Has anyone dealt with .cf7 files before? Does anyone know how to use one such file? Opening it in a text editor reveals it is of a binary nature. Any pointers would be greatly appreciated.
Thanks!
Try a product called Cashflow Manager. It also uses the .cf7 extension.

Resources