473,320 Members | 1,572 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

need clarification from M S Herfried K. Wagner

on a msg on 2/20/05 8:16 am pst you state (talking about arguments)
Depending on the application, certain parameter values need to be put

between double quotes, for example, file names containing space characters.
Maybe this is causing your problem.<<

I need to know when to use 2 double quotes?

.... is it different when you have arguments ...lets say:

1.- Process.Start("notepad", " ""C:\Bla Bla\1.txt"" ""/p Y"" " )

2.- proc.arguments = how?

thanks

--

Nov 21 '05 #1
7 996
Raulavi,

A pity that the Microsoft guy Herfried K. Wagner can only give an answer on
this question probably everybody knows its answer.

Cor
Nov 21 '05 #2
You may as well...thanks.

"Cor Ligthert" wrote:
Raulavi,

A pity that the Microsoft guy Herfried K. Wagner can only give an answer on
this question probably everybody knows its answer.

Cor

Nov 21 '05 #3
and it is....

(no it is just that he had the statement about quotes on prev msg)

"Cor Ligthert" wrote:
Raulavi,

A pity that the Microsoft guy Herfried K. Wagner can only give an answer on
this question probably everybody knows its answer.

Cor

Nov 21 '05 #4
Raulavi,

A double quote in every VB language is used to set a single quote in a
string.

Here is a more complete about sample about what you ask.

\\\
Dim p As New Process
Dim pi As New ProcessStartInfo
pi.Arguments = """C:\Windows\Win.Ini"" ""/p"" ""Y"""
pi.FileName = "notepad.exe"
p.StartInfo = pi
p.Start()
///

Although I absolutly don't know what those parameters mean,

Cor
Nov 21 '05 #5
Thanks...for the clarification, I wanted to be sure I did not miss something.
First, let me thanks each one of you that has replied to my msgs.

(then, Yeap I know that issue about VB dblequotes)
I found what was going with all these arguments passing...got carry out.
Very sorry about it.
the problem was not on arguments but, on one of my routines ( did some cut
and paste and you know the rest).

I thought that it was something special about running console exes and
arguments passing. I think I know how now.
But, you all did help me to find out what was wrong.

Thanks


"raulavi" wrote:
on a msg on 2/20/05 8:16 am pst you state (talking about arguments)
Depending on the application, certain parameter values need to be put

between double quotes, for example, file names containing space characters.
Maybe this is causing your problem.<<

I need to know when to use 2 double quotes?

... is it different when you have arguments ...lets say:

1.- Process.Start("notepad", " ""C:\Bla Bla\1.txt"" ""/p Y"" " )

2.- proc.arguments = how?

thanks

--

Nov 21 '05 #6
"raulavi" <ra*****@discussions.microsoft.com> schrieb:

First, please do not mention my name in a subject's title and stay in the
original thread.
on a msg on 2/20/05 8:16 am pst you state (talking about arguments)
Depending on the application, certain parameter values need to be put

between double quotes, for example, file names containing space
characters.
Maybe this is causing your problem.<<

I need to know when to use 2 double quotes?

... is it different when you have arguments ...lets say:

1.- Process.Start("notepad", " ""C:\Bla Bla\1.txt"" ""/p Y"" " )

2.- proc.arguments = how?


Double quotes are typically used to remove ambiguity when dealing with paths
containing spaces. Consider an application that accepts two paths as
command-line arguments and these paths contain spaces -- in this case it
would be hard to separate the two paths from each other. However, not all
applications understand double quoted paths at all, especially some other
tools ported from DOS/Win16 may recognize paths in 8.3 format without spaces
only.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #7
Addendum:

Sorry, it seems that I misread your post. Two consecutive double quotes are
used inside string literals to encode single double quote characters. In
other words, each sequence of two double quotes which is embedded into a
string literal will be interpreted as a single double quote.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Gordon | last post by:
Hello again, Sorry to repost this request, but I'm under a bit of pressure to find a quick solution. All I basically want is an automatically updating link (OLE, not DDE) between a control in...
13
by: James Bond | last post by:
Hello. My 80+ year old father has recently decided to get his first computer. Due to his age (and I suspect lack of playing pong as a child like I did) he lacks the manual dexterity to use a mouse...
10
by: Mark | last post by:
Hello, I need a some help. I am not a java programmer. I mostly do VB and C#. Here is my problem I have sever side text boxes and when a user tabs off or presses enter I need to have the...
9
by: Carify Me | last post by:
Hi I am new for developing component. Please advise me for the following problem. I have created the component (DLL) for opening dbconnection Using Oracle, using the below statement to use...
4
by: jcrouse | last post by:
I have searched this board for an example and also read Cor's link to the Google thread. I have an application with a startup module called mStartup. My application, after compiled is called...
6
by: Justin F. | last post by:
In my app I want the users to be able to select a folder to do their work in. The FolderBrowserDialog is a great way to do this, but I don't want to have a dialog pop up every time they want to...
22
by: OHM \( Terry Burns \) | last post by:
I was thinking about community the other day, and wondering what would be the holy grail for a developer in need. I mean, we do get help here, but its done on a best endeavours basis and its really...
9
by: dave m | last post by:
I need to be able to retrieve a unique ID from a users PC. I needs to be something a user could not easily change, like the computer name. Could someone point me in the right direction to find ...
2
by: =?Utf-8?B?QXJ0?= | last post by:
I need to go through a folder and all of its subfolders and collect the Title, Comments, Keywords and a few other items. These are items that you see when you select a file in the Windows explorer...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.