![]() |
|
|||||||
| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
| Questions & Help Needed Post any question regarding Basic4ppc. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Hi,
Quite some time I had no opportunity to program; therefore I have forgotten some simple things. Two questions: 1) How to include quote (") symbols in a string variable? 2) Is Shell variable name a valid statement? Variable should include (" "," ")? Thanks for some help Harry |
|
|||
|
Hello Agraham,
Thanks for your prompt reply. The second question in fact was whether the parameter following the Shell statement can be a variable or must be a string itself. I think that a variable is allowed. Testing some more I got the following problem: Two lines of coding: DelStr="(" & Chr(34) & "C:\Program Files\MortScript\MortScript.exe" & Chr(34) & "," & Chr(34) & "C:\Program Files\MortScript\Delete.mscr, DelName=" & DestPath & "Data.zip" & Chr(34) & ")" Shell Delstr The contents of DelStr now is : ("C:\Program Files\MortScript\MortScript.exe","C:\Program Files\MortScript\Delete.mscr, DelName=C:\MIOMAP\UI_S\Data.zip") This results into the message: Invalid characters in path. Is this caused by the space between Program and Files and how to solve this ? Harry |
|
||||
|
You will need to use two variables. One for the first argument and one for the second:
Code:
V1 = Chr(34) & "C:\Program Files\MortScript\MortScript.exe" & Chr(34) V2 = Chr(34) & "C:\Program Files\MortScript\Delete.mscr, DelName=" & DestPath & "Data.zip" & Chr(34) Shell(V1,V2) |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Questions on shell command, and user event, and the 6.30 | dan kabestan | Questions & Help Needed | 2 | 05-15-2008 07:45 PM |
| Shell and wait | Erel | Code Samples & Tips | 0 | 03-26-2008 04:14 PM |
| using shell() | Put Claude | Questions & Help Needed | 2 | 12-26-2007 09:41 AM |
| Shell | Wizarda2z | Questions & Help Needed | 3 | 08-05-2007 08:56 AM |
| Shell | tvrman | Questions & Help Needed | 3 | 07-30-2007 02:20 PM |