Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Jubula » Double backslashes cause problem for external app(Path not recognized as double backslashes are given as parameter)
Double backslashes cause problem for external app [message #870631] Wed, 09 May 2012 07:16
Sup SCFriend
Messages: 15
Registered: February 2012
Junior Member
I have a testcase where an external application is started. This application (Windows Explorer) is given a path (out of a variable) as parameter on startup. Unfortunately it does not recognize the path as valid, as it is not passed out with single backslashes by Jubula.
I tried to use slashes ('/') instead of backslashes ('\') but this helped neither. Nor did a test work, where I did not use a value of a variable, but passed " 'C:\temp' " as parameter directly to the external app - it still states, that the path "C:\\temp" would not exist.

What would be the way to pass a path for an external program, so that this external app gets the path with single backslashes?


If anyone tumbles over this post with a similar problem - at the moment I use a batch file as workaround which replaces the double backslash
--
@echo off
set FILE_TO_SELECT=%1
set FILE_TO_SELECT=%FILE_TO_SELECT:\\=\%
start explorer /select, %FILE_TO_SELECT%
--

[Updated on: Thu, 10 May 2012 08:18]

Report message to a moderator

Previous Topic:MySQL driver not found
Next Topic:Insert Text / Replace Text / Click in Component not working
Goto Forum:
  


Current Time: Fri Apr 26 10:14:08 GMT 2024

Powered by FUDForum. Page generated in 0.02981 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top