Reply
server.mappath(path)in vb.net
Old 10-30-2009, 04:59 AM server.mappath(path)in vb.net
Junior Talker

Posts: 3
Trades: 0
Dim path As String
path = "test.bat"
Dim sw As System.IO.StreamWriter
Dim fi As System.IO.FileInfo
fi = New System.IO.FileInfo(Server.MapPath(path))
sw = fi.CreateText()
'The List Of Operations you want to execute.
sw.WriteLine("cd c:\\")
sw.WriteLine("md c:\\dummy")
sw.WriteLine("cd dummy")
sw.WriteLine("C:\\winJavaCoverage\\bin\\javacovera ge -F c:\\test.java")
sw.WriteLine("javac Pack\\Test.java")
sw.WriteLine("java Pack\\Test")
sw.Close()


pls help me.when i use thid code in my vb.net form it shows server.mappath is not declared.m not geting how to do that.please help me its so urgent
kokila1986 is offline
Reply With Quote
View Public Profile
 
 
When You Register, These Ads Go Away!
Old 10-30-2009, 05:03 AM Re: server.mappath(path)in vb.net
chrishirst's Avatar
Super Moderator

Posts: 22,257
Location: Blackpool. UK
Trades: 0
http://www.webmaster-talk.com/net-pr...ppath-net.html
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Growing old is mandatory - Growing up is optional
Code Samples | People Counting System | Bits & Bobs
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 10-30-2009, 08:46 AM Re: server.mappath(path)in vb.net
Junior Talker

Posts: 3
Trades: 0
hey m still not geting nethng beneficial. i want the code in vb.net.
plz help me as how to use server.mappath in vb.net
kokila1986 is offline
Reply With Quote
View Public Profile
 
Old 10-30-2009, 09:12 AM Re: server.mappath(path)in vb.net
chrishirst's Avatar
Super Moderator

Posts: 22,257
Location: Blackpool. UK
Trades: 0
And did you go to this page?
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Growing old is mandatory - Growing up is optional
Code Samples | People Counting System | Bits & Bobs
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 11-07-2009, 09:08 AM Re: server.mappath(path)in vb.net
Junior Talker

Posts: 3
Trades: 0
sir, i hve tried my best pls help me .

what r all the namespace and things i hve to use..
please tell me with the code.
kokila1986 is offline
Reply With Quote
View Public Profile
 
Old 11-09-2009, 09:16 PM
Banned

Posts: 1
Name: muslatfra
Trades: 0
can you help me?

i want the code in vb.net.

thanks
muslatfra is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to server.mappath(path)in vb.net
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 



Page generated in 0.21137 seconds with 13 queries