473,657 Members | 2,458 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1016
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 ProcessStartInf o
pi.Arguments = """C:\Windows\W in.Ini"" ""/p"" ""Y"""
pi.FileName = "notepad.ex e"
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*****@discus sions.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
2564
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 my application and a cell in an Excel spreadsheet. My control has to automatically receive updates from the spreadsheet cell. I already know how to access the spreadsheet via the Excel.Application class
13
2294
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 well. He is frequently missing the left mouse button and hitting the right, or less often the middle (wheel) buttons. While he is very slowly getting better with practice, the frustration level is high for him as a result of this (he gets very...
10
1269
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 textbox do a format to change the about from like 121.23 to $121.23 and have it move to the next field. Can someone help me? Thanks Mark
9
1095
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 the connection in my application. --------------------------Standard EXE--------------------
4
1389
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 CPViewer.exe Here is the code from the Sub Main: Dim owned As Boolea Dim mut As New System.Threading.Mutex(True, "CPViewer.exe", owned Sub main( If owned The Application.Run(New frmVertical mut.ReleaseMutex( Els
6
10444
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 switch folders. Is there a treeview control (ala Windows Explorer) in the 1.1 framework, or do I need to find a 3rd party control? If I need to find a 3rd party control, can anyone suggest a good free one? Thanks, Justin
22
1482
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 really good most of the time. What Ideally would you guys like to see in the perfect community site which would help you out? -- OHM ( Terry Burns ) * Use the following to email me *
9
12569
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 the information found in Windows system information? Or maybe there is a better method. Thanks in advance for any help or suggestions. Dave M.
2
2836
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 and look in Properties, Summary. In VBA I'm able to get at this informatio using Dsofile.dll -- found on a MS site somewhere. It looks like I'd like to use My.Computer.FileSystem, but I can't seem to find out how to get what I need. I'd...
0
8420
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8324
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8842
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8740
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8516
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8617
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
4173
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
1970
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1733
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.