English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

how to

@: execute a program located in active user's profile folder.

@: execute the next program just after the first termiates.

@: delete the unwanted files.

2007-06-26 00:51:20 · 2 answers · asked by Parv 2 in Computers & Internet Programming & Design

I want to get this location C:\documents and settings\[username]\local settings

2007-06-26 01:10:28 · update #1

2 answers

to get the mydocuments folder for the current user
Environment . GetFolderPath ( Environment. SpecialFolder . MyDocuments)

to execute a program you

Process p = new Process();
p.StartInfo.WorkingDirectory = whateverWorkingDir
p.StartInfo.FileName = exefille
p.StartInfo.Arguments = arguments p.StartInfo.WindowStyle = p.StartInfo.WindowStyle = ProcessWindowStyle.Normal;
p.Start();
p.WaitForExit();

use 2 process objects, run the first program, use WaitForExit then run the 2nd prog

to delte files
use
File.Delete(filepath)

don't forget to put
using System.IO;

2007-06-26 01:03:44 · answer #1 · answered by succubus 5 · 0 0

Take an element-time activity in an Auditors workplace. you're able to have an excellent sort of discovering, besides as earn some spare money. Earmark the time once you will concentration basically for examine, as CA demands an excellent sort of committed time and attempt. do no longer lose your concentration on your substantial purpose, ie. final touch of your examine. all the main suitable!!

2017-01-01 06:30:35 · answer #2 · answered by ? 3 · 0 0

fedest.com, questions and answers