Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help with variable / run in script.......

Status
Not open for further replies.

mikeshan1784

IS-IT--Management
Feb 28, 2002
11
0
0
US
To anyone that can help,

I have the following script.

strFROMDIR = "E:\DOWNLOAD DATA\"
strTODIR = "W:\DataExchange\DataSync\"
strTOARC = "E:\DataExchange\DataSync\Archive\"
strTRIGDIR = "E:\DataExchange\Trigger\"
strUSERDIR = "C:\Onc\Sync\"
strUSERS = InputBox("Enter The Users Name:")
strTABLES = "ALL"
strGROUPA = "osql -U FameADM -P FameADM -d OnContactDB -Q "SPFM_Sync_GroupA " & USERS & ", " & TABLES & ", " & TODIR & ", " & USERDIR & "" -w 130 -S PNTSQL1.fic.com -n -o E:\Batlib\Reports\SPFM_Sync_GroupA_Prod.Rpt"
WSHShell.Run " & strGROUPA & ", 1, False

When I run this I get an expected end of statement error. I understand that it is because of the " right after -Q in the "strGROUPA = " setup but for this osql command the extra quotes are needed. Does anyone know how to set this up so that I can include the "" in the variable. I have also tried this osql command line with WSHShell.Run and I get the same error. Any help is appreciated...

Thanks in advance,
Mike Shanley
 
try something like this

[tt]strNAME = "Justin"
strMSG = "Hello"

MsgBox strNAME & " said """ & strMSG & """."[/tt]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top