Regex for Folder?
#1
Posted 30 June 2011 - 10:59 AM
i will create a Upload Bot that Upload a File from Varibale Directory.
Example:
Step1
Bot Upload File from: D:\folder1\([A-Za-z0-9-]+)\folder2\file.zip
Step2
Bot return finish
Is this possible?
Best Regards
Z!nni
#3
Posted 01 July 2011 - 12:58 AM
Beste Regards
Z!nni
#4
Posted 01 July 2011 - 01:20 AM
used normally with a add to list or add to table for saving to csv, text file, or using a list in your bot.
#5
Posted 02 July 2011 - 03:45 AM
Best Regards
Z!nni
#6
Posted 02 July 2011 - 09:06 AM
Does anyone have any idea, how I can implement the Regex in Folder?
Best Regards
Z!nni
Give an example what your trying to accomplish?
#7
Posted 02 July 2011 - 09:16 AM
Attached Files
#8
Posted 02 July 2011 - 09:21 AM
TJ
#9
Posted 02 July 2011 - 09:31 AM
John
#10
Posted 02 July 2011 - 09:41 AM
So Folder 1 and subfolder are known directories and the one between them is always going to be unknown? Logically, I can't really wrap my head around that, but in any event, the only way I was able to attempt that was unsuccessful. The $get files constant does not include subdirectories so there is no original text from which you can draw a $find regular expression.
John
I have create a Software, thats have a generated Folder. Thats the Unknown Folder. I have the Idea to create a *.bat file with this:
dir /b folder.txt
But Ubot Studio can`t run this :-( click i the *.bat manually than works fine.
#11
Posted 02 July 2011 - 09:46 AM
if your targeting the desktop, or programs tree you should be able to create a folder anywhere you like.
TJ
#12
Posted 02 July 2011 - 09:51 AM
#13
Posted 02 July 2011 - 10:11 AM
My Program have a file (file1.csv) in Unknown folder. I need this File. I will not create a folder or anything else. I need only the file1.csv thats my program have generated.
So have ubot create the file in a location that the bot can read from.
ie: desktop, app folder, document folder
and read from it.
Delete when done if you like or it can remain there as the next time it is ran it will overwrite itself.
TJ
#14
Posted 02 July 2011 - 10:30 AM
Example:
Create a directory on Desktop with name: "folder1".
Than create another directory with name: "folder2"
run the .ubot file in my attachment and see it dosn`t work :-(
Attached Files
#15
Posted 02 July 2011 - 10:34 AM
no need for shell
no need for any the other ways you were trying..
Attached Files
#16
Posted 02 July 2011 - 10:46 AM
I need a file from this Directory: %desktop%\folder1\any-name-of-directory\file.csv
The any-name-of-directory is a Directory, wich name i not known.
Best Regards
Z!nni
#17
Posted 02 July 2011 - 11:11 AM
there could be multiple folders all with a csv in them. therefore it would continuously loop because it wouldn't know which one to choose, and or would only choose the first one it came across.
To grab specific data is best to create the folder so that it is pin pointed exactly for the csv your needing.
If it is a specific csv that is needed to be grabbed, then have it setup as a User Input (UI open file) command.
thus giving the precise csv that is to be used.
TJ
#18
Posted 02 July 2011 - 11:24 AM
why does it have to be any name of a directory in that position?
I have create a Software, thats generate a User Directory. (example "1hfgfGGHbdUSER") In this Directory is a Stat file. (file1.csv)
The user should not even write the path in a ui panel or file. It should be read automatically. I wanted to ask if this is possible?
#19
Posted 02 July 2011 - 11:54 AM
#20
Posted 02 July 2011 - 12:27 PM
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users















