c# - Using Process.Start and shortPath on one computer it is working and on the other not -


i'm doing small software reads database names of applications open , open them automatically.

i developed on 1 computer , create installation , install on few computers. have windows 7 , service pack 1. on computers working except one.

on computer following error:

'c:\users\pulse\mydocu~1\jdjdkjdjskjs.xlsx' not found. check spelling of file name, , verify file location correct.

if trying open file list of use files, make sure file has not been renamed, moved or deleted.

the path created correctly , error in file name. characters creates different each execution (although file name same).

the following code use:

stringbuilder shortpath = new stringbuilder(255); getshortpathname(filename, shortpath, shortpath.capacity); process.start(commandline, shortpath.tostring()); 

where data filename , commandline read database. needs corrected here?


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -