.Net 2003 Win App can't see local files
.Net 2003 Win App can't see local files
.Net 2003 Win App can't see local files
.Net 2003 Win App can't see local files
.Net 2003 Win App can't see local files
.Net 2003 Win App can't see local files .Net 2003 Win App can't see local files .Net 2003 Win App can't see local files .Net 2003 Win App can't see local files .Net 2003 Win App can't see local files .Net 2003 Win App can't see local files .Net 2003 Win App can't see local files .Net 2003 Win App can't see local files
.Net 2003 Win App can't see local files .Net 2003 Win App can't see local files
.Net 2003 Win App can't see local files
Go Back  Xtreme Visual Basic Talk > > > .Net 2003 Win App can't see local files


Reply
 
Thread Tools Display Modes
  #1  
Old 01-25-2012, 01:39 PM
AKBauer AKBauer is offline
Newcomer
 
Join Date: Jan 2012
Posts: 1
Default .Net 2003 Win App can't see local files


Hello, I'm programming a small windows app that allows the user to fill out some fields and then creates and runs a batch file based on their entries. The program works, but it doesn't. The program creates the batch file just fine but when it tries to run the batch file, it gets errors in the cmd window saying it cannot find the scripts the batch file is trying to call. What's confusing me is that if I take the batch file the program created and run it myself, it works just fine so I know it is not the batch that is the problem. My best guess is that there is some security setting for vs.net that I've overlooked but I am only an "every once in a while" programmer so I really don't know where to look. Additionally after running the batch, the program is supposed to delete the batch file but that fails as well with the message that it cannot find the batch file, the same batch file that it had just created and run.

For system information, I'm running Windows XP Pro, SP3 with Visual Studio.net 2003.

Thanks in advance for your help!
Reply With Quote
  #2  
Old 01-25-2012, 02:51 PM
Flyguy's Avatar
Flyguy.Net 2003 Win App can't see local files Flyguy is offline
Lost Soul

Super Moderator
* Guru *
 
Join Date: May 2001
Location: Vorlon
Posts: 19,165
Default

My best guess is that you have to change the current directory to the directory in which the batch file is created. Either in your program before executing the batch file or just as an additional command in the batch file.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
.Net 2003 Win App can't see local files
.Net 2003 Win App can't see local files
.Net 2003 Win App can't see local files .Net 2003 Win App can't see local files
.Net 2003 Win App can't see local files
.Net 2003 Win App can't see local files
.Net 2003 Win App can't see local files .Net 2003 Win App can't see local files .Net 2003 Win App can't see local files .Net 2003 Win App can't see local files .Net 2003 Win App can't see local files .Net 2003 Win App can't see local files .Net 2003 Win App can't see local files
.Net 2003 Win App can't see local files
.Net 2003 Win App can't see local files
 
.Net 2003 Win App can't see local files
.Net 2003 Win App can't see local files
 
-->