How to get latest created subfolder - vbscript

In VB Script how to get latest sub-folder?
C:\Automation\QTP\Branch\Test Results\UPDATE_CUSTOMER 017_QTP\EB\20140508_1210_PM
In the above path I know up to "C:\Automation\QTP\Branch\Test Results\UPDATE_CUSTOMER 017_QTP\EB\20140508_", for every few minutes new folder will be created with different time as suffix like 20140508_1213_PM. So here how to get the latest folder got created under "C:\Automation\QTP\Branch\Test Results\UPDATE_CUSTOMER 017_QTP\EB\"
Any suggestions will be appreciated.

Related

SSRS: Report Exists but is not visible on Page

I am trying to upload a newly modified report to a Folder on our Report Server.
If I Upload with 'Overwrite Item if it Exists' checked, the Upload appears to execute.
But when I go to the destination page, the report does not appear there.
If I then try the Upload again - with 'Overwrite Item if it Exists' NOT checked, I get a message saying: "The folder, report, resource, model or data source /Folder_Name/Sub_Folder/Report_Name already exists."
The one thing I may have done that I have never done before is I may have first deleted the existing report from the destination folder before attempting to upload the modified replacement for it.
I need the modified report to be visible on the destination page/folder for my Users.
I'd appreciate any help I can get.
Thanks!!
Though I was not able to figure out why the modified report refused to show in the existing folder every time I uploaded it, I created a new folder and was able to upload the modified report into it and move all the other reports into the new folder as well. Everything is working as expected in the new folder. I know this is not an 'answer per se but it has solved my problem. Thanks!

Cannot delete mac alias file

I am having severe issue with mac alias. I have ana xcode project working fine except recently it denied to find a View controller class ("A.swift") to set in storyboard. Tried many tweaks with zero results. Finally I searched in finder in my main project directory for that view controller file name, and I found that I have some alias file as well for that view controller.
I cannot delete that alias, cannot locate the original file (no information in Get Info, Select New Original... is grayed).
Any help for this?
Note: I have two A.swift files for Mac OS and iOS, both in different directories.
Give it a try with rollback/checkout you last changes if you haven't made big.

Finding the path to file using application startuppath in a windows form

Hi every one I am trying to access a file in certain folder in my windows form app, but I keep getting the error "could not find a part of the path: C:....e.t.c".
here is my code:
string doc = Application.StartupPath + #"\filefolder\pin-card02.docx";
please what is wrong with this piece of code?
I have seen some explanations but nothing tells me how to direct my program to a certain file in a folder...
Thanks in Advance
There's probably nothing wrong with this piece of code, most likely this file is not set as content of your application and is not getting copied to the output directory, if this is part of a visual studio solution, check that pin-card02.docx has "copy to output directory" set to "Always" or "Copy if newer" in the .doc's properties, if it's not part of the solution, you may need to include it and set the property.
If this doesn't help, you'll need to provide more information on the problem.

Running AntlrWorks2 stand-alone on Windows 7

I must be missing something. After downloading AntlrWorks2 I found the executable bin/antlrworks2.exe and bin/antlrworks264.exe. Aren't these supposed to be the standalone version of the tool? Neither works for me; after a NetBeans splash screen, the first times around I got an error message on missing packages; after a couple of times I chose to go on regardless, but now (still after the initial spash screen) there is simply nothing happening at all.
I can't find any tutorial or manual detailing how to run AntlrWorks stand-alone, so any help is much appreciated.
This is due to a bug in the NetBeans platform. I filed a report but it hasn't received a reply yet:
Cannot launch platform application after moving installation folder
Here is a workaround that does not delete any preferences you have customized:
I found that deleting just the var folder under the user's generated
.antlrworks2 settings folder resolves the issue...
Still an issue as of date of this post. Deleting the .antlrworks2 folder from \users\username\AppData\Roaming does work - you can find this folder by putting %APPDATA% into your file explorer address bar (exactly as shown) - that will go to the app data folder for your current user login session. Delete the .antlrworks2 folder and then re-run the app.

Bundling images with Blackberry

How do I get bundled images with the BlackBerry Eclipse Plugin 1.1 Beta? I copied an image into "res/background.jpg" and tried to load it using Bitmap.getBitmapResource on background.jpg. Unfortunately, the image wasn't found (Illegal argument exception). I tried moving my image file into the src folder as per the advice here, but that didn't work either. I have opened up the .jar file and the background image is present at the root of the .jar file. The option to convert image files to .png isn't selected either.
Links
Could not find sample
Library Reference
Two things:
The res folder needs to be a "source directory" in Eclipse. You can achieve this by right-clicking on the folder and going to "Build Path" -> "Use As Source Folder".
When calling Bitmap.getBitmapResource(), like Michael B. said above, you shouldn't put the folder name in the path. Just call Bitmap.getBitmapResource("background.jpg");
Finally, I'm assuming that because your resource is called "background.jpg" you want it to be the background for a Screen. If this is the case, make sure to set the background using the Screen's Main Manager instead of on the screen itself. For example:
public class MyScreen extends MainScreen
{
public MyScreen() {
getMainManager().setBackground(
BackgroundFactory.createBitmapBackground(
Bitmap.getBitmapResource("background.jpg")));
}
}
When you added the resource to the res folder, did you perform a refresh of the project in Eclipse? If it doesn't 'see' it, the packager ignores it. If you restarted Eclipse, it would pick it up the next time, which might explain why it started working randomly.
This should be the code to load your image, without any directory in the path.
Bitmap.getBitmapResource("background.jpg")
Then put the image in any package of your src directory like in
com.rim.sample.resources
When you say it failed what do you mean? Does it throw an error?
I've found that when I add/change a resource it might not take affect immediately. What I found I need to do is to delete the cod file and run a clean on the project (not just build it), then run the packaging (rapc) command. This should make sure the image is there.

Resources