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
Post a Comment