Advertisement
Guest User

Untitled

a guest
Jun 27th, 2017
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.63 KB | None | 0 0
  1. Program Form is located:
  2. D:\folder\form.exe
  3.  
  4. Game is located here:
  5. D:\folder\Source\Game1\
  6.  
  7. Code the Form performs:
  8. Process.Start(GamePortalPath + "\\Source\\Game1\\game.exe", "-parameter");
  9.  
  10. The game exe starts just fine, but the Exe somehow starts from the same place where the form exe is (D:\folder\) as it's working path, instead of it's own game folder (D:\folder\Source\Game1\)
  11. This gives lots of errors ofcause... the game exe file somehow gets copied out into the same folder as the form exe is located o.O
  12.  
  13. Is this normal when starting Programs or is there a way to determan with path my executed program should be loaded from?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement