Click here to Skip to main content
15,910,981 members
Home / Discussions / C#
   

C#

 
QuestionLocation and access method for global connection strings Pin
PeteConc1-Oct-06 5:26
PeteConc1-Oct-06 5:26 
AnswerRe: Location and access method for global connection strings Pin
S. Senthil Kumar1-Oct-06 9:37
S. Senthil Kumar1-Oct-06 9:37 
Questionhelp with data access Pin
Mridang Agarwalla1-Oct-06 1:20
Mridang Agarwalla1-Oct-06 1:20 
AnswerRe: help with data access Pin
Rob Graham1-Oct-06 4:39
Rob Graham1-Oct-06 4:39 
QuestionZip Folder [modified] Pin
dehghan198430-Sep-06 23:59
dehghan198430-Sep-06 23:59 
AnswerRe: Zip Folder Pin
User 66581-Oct-06 0:30
User 66581-Oct-06 0:30 
AnswerRe: Zip Folder Pin
Hamid_RT2-Oct-06 9:33
Hamid_RT2-Oct-06 9:33 
Questiontimers in services Pin
sianatia30-Sep-06 23:03
sianatia30-Sep-06 23:03 
AnswerRe: timers in services Pin
Stefan Troschuetz30-Sep-06 23:21
Stefan Troschuetz30-Sep-06 23:21 
QuestionControls's array Pin
t_nedelchev30-Sep-06 22:07
t_nedelchev30-Sep-06 22:07 
AnswerRe: Controls's array Pin
Stefan Troschuetz30-Sep-06 22:17
Stefan Troschuetz30-Sep-06 22:17 
GeneralRe: Controls's array Pin
t_nedelchev30-Sep-06 23:06
t_nedelchev30-Sep-06 23:06 
GeneralRe: Controls's array Pin
Stefan Troschuetz30-Sep-06 23:17
Stefan Troschuetz30-Sep-06 23:17 
GeneralRe: Controls's array Pin
t_nedelchev1-Oct-06 1:23
t_nedelchev1-Oct-06 1:23 
Questionkeys events Pin
Kola Sokol30-Sep-06 22:05
Kola Sokol30-Sep-06 22:05 
AnswerRe: keys events Pin
Stefan Troschuetz30-Sep-06 22:29
Stefan Troschuetz30-Sep-06 22:29 
GeneralRe: keys events Pin
Kola Sokol30-Sep-06 22:36
Kola Sokol30-Sep-06 22:36 
GeneralRe: keys events Pin
Stefan Troschuetz30-Sep-06 22:47
Stefan Troschuetz30-Sep-06 22:47 
GeneralRe: keys events Pin
Kola Sokol30-Sep-06 23:36
Kola Sokol30-Sep-06 23:36 
GeneralRe: keys events Pin
Stefan Troschuetz30-Sep-06 23:55
Stefan Troschuetz30-Sep-06 23:55 
QuestionCheck out if Serial port is used from another application Pin
t_nedelchev30-Sep-06 22:02
t_nedelchev30-Sep-06 22:02 
AnswerRe: Check out if Serial port is used from another application Pin
Stefan Troschuetz30-Sep-06 22:49
Stefan Troschuetz30-Sep-06 22:49 
QuestionShell argument's path problem; "D:\My Documents" vs. "D:\MyDocu~1" Pin
User 96257830-Sep-06 21:52
User 96257830-Sep-06 21:52 
Im making a WinForm GUI for a program that run in the command shell. The problem is that shell program has problems if the input arguments have spaces because after each space it thinks its a new argument. For example:

abc.exe D:\My Documents\myfile.xml
will give an error like Error: invalid command line argument: 'D:\My'

It will work if i use:
abc.exe D:\MyDocu~1\myfile.xml ok

So my question is that how can i get the old style "MyDocu~1" or from an OpenFileDialog.FileName that has "D:\My Documents\myfile.xml". I dont know the name of the style so i called it "old style"

The shell program has an output argument that will send the resulting file to that directory but i will have the same problem as the input file. I just may have to use the OpenFileDialog with File.Copy to copy the file to my program's directory and move with File.Move the resulting file to the same directory as the input file using the file path from the OpenFileDialog.

modified 16-May-21 21:01pm.

AnswerRe: Shell argument's path problem; "D:\My Documents" vs. "D:\MyDocu~1" Pin
Stefan Troschuetz30-Sep-06 22:40
Stefan Troschuetz30-Sep-06 22:40 
AnswerRe: Shell argument's path problem; "D:\My Documents" vs. "D:\MyDocu~1" Pin
S. Senthil Kumar1-Oct-06 9:39
S. Senthil Kumar1-Oct-06 9:39 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.